| Total Complexity | 8 |
| Total Lines | 90 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | class WorkspaceCollectionEntry |
||
| 21 | { |
||
| 22 | use HydratorTrait { |
||
| 23 | fromArray as private fromArrayTrait; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** @var string */ |
||
| 27 | protected $id; |
||
| 28 | /** @var string */ |
||
| 29 | protected $name; |
||
| 30 | /** @var string */ |
||
| 31 | protected $description; |
||
| 32 | /** @var bool */ |
||
| 33 | protected $isArchived; |
||
| 34 | /** @var string */ |
||
| 35 | protected $organisation; |
||
| 36 | /** @var Locale[] */ |
||
| 37 | protected $locales; |
||
| 38 | |||
| 39 | |||
| 40 | /** |
||
| 41 | * WorkspaceCollectionEntry constructor. |
||
| 42 | * |
||
| 43 | */ |
||
| 44 | protected function __construct() |
||
| 46 | } |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return string |
||
| 50 | */ |
||
| 51 | public function getId(): string |
||
| 54 | } |
||
| 55 | |||
| 56 | /** |
||
| 57 | * @return string |
||
| 58 | */ |
||
| 59 | public function getName(): string |
||
| 60 | { |
||
| 61 | return $this->name; |
||
| 62 | } |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function getDescription(): string |
||
| 68 | { |
||
| 69 | return $this->description; |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return bool |
||
| 74 | */ |
||
| 75 | public function isArchived(): bool |
||
| 76 | { |
||
| 77 | return $this->isArchived; |
||
| 78 | } |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @return string |
||
| 82 | */ |
||
| 83 | public function getOrganisation(): string |
||
| 86 | } |
||
| 87 | |||
| 88 | /** |
||
| 89 | * @return Locale[] |
||
| 90 | */ |
||
| 91 | public function getLocales(): array |
||
| 94 | } |
||
| 95 | |||
| 96 | /** |
||
| 97 | * @param array $data |
||
| 98 | * @return WorkspaceCollectionEntry |
||
| 99 | */ |
||
| 100 | public static function fromArray(array $data) |
||
| 110 | } |
||
| 111 | } |
||
| 112 |