| 1 | <?php  | 
            ||
| 21 | class Consumer extends AbstractDocument  | 
            ||
| 22 | { | 
            ||
| 23 | /**  | 
            ||
| 24 | * username  | 
            ||
| 25 | * @var string $username  | 
            ||
| 26 | */  | 
            ||
| 27 | protected $username = null;  | 
            ||
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * custom id  | 
            ||
| 31 | * @var string $customId  | 
            ||
| 32 | */  | 
            ||
| 33 | protected $customId = null;  | 
            ||
| 34 | |||
| 35 | /**  | 
            ||
| 36 | * set username  | 
            ||
| 37 | *  | 
            ||
| 38 | * @param string $username  | 
            ||
| 39 | *  | 
            ||
| 40 | * @return this  | 
            ||
| 41 | */  | 
            ||
| 42 | 1 | public function setUsername(string $username): self  | 
            |
| 48 | |||
| 49 | /**  | 
            ||
| 50 | * get username  | 
            ||
| 51 | *  | 
            ||
| 52 | * @return string  | 
            ||
| 53 | */  | 
            ||
| 54 | 1 | public function getUsername(): string  | 
            |
| 58 | |||
| 59 | /**  | 
            ||
| 60 | * set custom id  | 
            ||
| 61 | *  | 
            ||
| 62 | * @param string $customId  | 
            ||
| 63 | *  | 
            ||
| 64 | * @return this  | 
            ||
| 65 | */  | 
            ||
| 66 | 1 | public function setCustomId(string $customId): self  | 
            |
| 72 | |||
| 73 | /**  | 
            ||
| 74 | * get custom id  | 
            ||
| 75 | *  | 
            ||
| 76 | * @return string  | 
            ||
| 77 | */  | 
            ||
| 78 | 1 | public function getCustomId(): string  | 
            |
| 79 |     { | 
            ||
| 80 | 1 | return $this->customId;  | 
            |
| 81 | }  | 
            ||
| 82 | |||
| 83 | /**  | 
            ||
| 84 | * get fields  | 
            ||
| 85 | *  | 
            ||
| 86 | * @return array  | 
            ||
| 87 | */  | 
            ||
| 88 | 1 | protected function getFields(): array  | 
            |
| 95 | }  | 
            ||
| 96 |