| 12345678910111213141516171819202122232425262728 |
- <?php
- namespace cx_newsletter;
- class customer
- extends database_item
- implements database_item_interface {
- public ?string $company = null;
- public ?string $name = null;
- public ?string $surname = null;
- public ?string $comments = null;
- public ?string $email = null;
- public ?string $phone_number = null;
- public ?bool $tester = null;
- public ?group $group = null;
- public function is_complete() : bool {
- if ($this->company === null) return false;
- if ($this->name === null) return false;
- if ($this->surname === null) return false;
- if ($this->comments === null) return false;
- if ($this->email === null) return false;
- if ($this->phone_number === null) return false;
- if ($this->tester === null) return false;
- return true;
- }
- }
|