1 | <?php |
||
9 | class Data |
||
10 | { |
||
11 | /** |
||
12 | * @var string|null |
||
13 | */ |
||
14 | protected $name; |
||
15 | |||
16 | /** |
||
17 | * @var string|null |
||
18 | */ |
||
19 | protected $period; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | protected $values = []; |
||
25 | |||
26 | /** |
||
27 | * @var string|null |
||
28 | */ |
||
29 | protected $title; |
||
30 | |||
31 | /** |
||
32 | * @var string|null |
||
33 | */ |
||
34 | protected $description; |
||
35 | |||
36 | /** |
||
37 | * @var string|null |
||
38 | */ |
||
39 | protected $id; |
||
40 | |||
41 | /** |
||
42 | * @var string|null |
||
43 | */ |
||
44 | protected $tag; |
||
45 | |||
46 | /** |
||
47 | * @var string|null |
||
48 | */ |
||
49 | protected $profilePictureUrl; |
||
50 | |||
51 | /** |
||
52 | * @var array |
||
53 | */ |
||
54 | protected $data; |
||
55 | |||
56 | /** |
||
57 | * Data constructor. |
||
58 | */ |
||
59 | 4 | public function __construct(array $data) |
|
71 | |||
72 | 1 | public function getName(): ?string |
|
76 | |||
77 | 1 | public function getPeriod(): ?string |
|
81 | |||
82 | /** |
||
83 | * @return \Kerox\Messenger\Model\Data\Value[] |
||
84 | */ |
||
85 | 1 | public function getValues(): array |
|
89 | |||
90 | /** |
||
91 | * @return \Kerox\Messenger\Model\Data |
||
92 | */ |
||
93 | 4 | public function setValues(array $data): self |
|
103 | |||
104 | 1 | public function getTitle(): ?string |
|
108 | |||
109 | 1 | public function getDescription(): ?string |
|
113 | |||
114 | 1 | public function getId(): ?string |
|
118 | |||
119 | 1 | public function getTag(): ?string |
|
123 | |||
124 | public function getProfilePictureUrl(): ?string |
||
128 | |||
129 | /** |
||
130 | * @return \Kerox\Messenger\Model\Data |
||
131 | */ |
||
132 | 3 | public static function create(array $data): self |
|
136 | } |
||
137 |