| 1 | <?php |
||
| 12 | final class Category implements IzettlePostable |
||
| 13 | { |
||
| 14 | private $uuid; |
||
| 15 | private $name; |
||
| 16 | private $etag; |
||
| 17 | private $updatedAt; |
||
| 18 | private $updatedBy; |
||
| 19 | private $createdAt; |
||
| 20 | |||
| 21 | 4 | public static function create( |
|
| 38 | |||
| 39 | 3 | public static function new(string $name): self |
|
| 46 | |||
| 47 | 6 | public function getUuid(): UuidInterface |
|
| 51 | |||
| 52 | 4 | public function getName(): string |
|
| 56 | |||
| 57 | 4 | public function getEtag(): ?string |
|
| 61 | |||
| 62 | 4 | public function getUpdatedAt(): ?DateTime |
|
| 66 | |||
| 67 | 4 | public function getUpdatedBy(): ?UuidInterface |
|
| 71 | |||
| 72 | 4 | public function getCreatedAt(): ?DateTime |
|
| 76 | |||
| 77 | |||
| 78 | 1 | public function getPostBodyData(): string |
|
| 87 | |||
| 88 | 7 | private function __construct( |
|
| 103 | } |
||
| 104 |