Total Complexity | 8 |
Total Lines | 90 |
Duplicated Lines | 0 % |
Coverage | 100% |
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 = false; |
||
34 | /** @var string */ |
||
35 | protected $organisation = ""; |
||
36 | /** @var Locale[] */ |
||
37 | protected $locales = []; |
||
38 | |||
39 | |||
40 | /** |
||
41 | * WorkspaceCollectionEntry constructor. |
||
42 | * |
||
43 | */ |
||
44 | 3 | protected function __construct() |
|
46 | 3 | } |
|
47 | |||
48 | /** |
||
49 | * @return string |
||
50 | */ |
||
51 | 1 | public function getId(): string |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * @return string |
||
58 | */ |
||
59 | 1 | public function getName(): string |
|
60 | { |
||
61 | 1 | return $this->name; |
|
62 | } |
||
63 | |||
64 | /** |
||
65 | * @return string |
||
66 | */ |
||
67 | 1 | public function getDescription(): string |
|
68 | { |
||
69 | 1 | return $this->description; |
|
70 | } |
||
71 | |||
72 | /** |
||
73 | * @return bool |
||
74 | */ |
||
75 | 1 | public function isArchived(): bool |
|
76 | { |
||
77 | 1 | return $this->isArchived; |
|
78 | } |
||
79 | |||
80 | /** |
||
81 | * @return string |
||
82 | */ |
||
83 | 1 | public function getOrganisation(): string |
|
86 | } |
||
87 | |||
88 | /** |
||
89 | * @return Locale[] |
||
90 | */ |
||
91 | 2 | public function getLocales(): array |
|
94 | } |
||
95 | |||
96 | /** |
||
97 | * @param array $data |
||
98 | * @return WorkspaceCollectionEntry |
||
99 | */ |
||
100 | 3 | public static function fromArray(array $data) |
|
110 | } |
||
111 | } |
||
112 |