1 | <?php |
||
19 | class Setting implements SettingInterface |
||
20 | { |
||
21 | /** |
||
22 | * @var int |
||
23 | */ |
||
24 | protected $id; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | private $section; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | */ |
||
34 | protected $key; |
||
35 | |||
36 | /** |
||
37 | * @var string |
||
38 | */ |
||
39 | protected $value; |
||
40 | |||
41 | /** |
||
42 | * @var string |
||
43 | */ |
||
44 | protected $owner; |
||
45 | |||
46 | /** |
||
47 | * @var \DateTimeInterface|null |
||
48 | */ |
||
49 | protected $createdAt; |
||
50 | |||
51 | /** |
||
52 | * @var \DateTimeInterface|null |
||
53 | */ |
||
54 | protected $updatedAt; |
||
55 | |||
56 | 3 | public function __construct() |
|
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function getId() |
||
69 | |||
70 | /** |
||
71 | * {@inheritdoc} |
||
72 | */ |
||
73 | 3 | public function getSection(): string |
|
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | 3 | public function setSection(string $section): void |
|
85 | |||
86 | /** |
||
87 | * {@inheritdoc} |
||
88 | */ |
||
89 | 3 | public function getKey(): string |
|
93 | |||
94 | /** |
||
95 | * {@inheritdoc} |
||
96 | */ |
||
97 | 3 | public function setKey(string $key): void |
|
101 | |||
102 | /** |
||
103 | * {@inheritdoc} |
||
104 | */ |
||
105 | 1 | public function getValue(): string |
|
109 | |||
110 | /** |
||
111 | * {@inheritdoc} |
||
112 | */ |
||
113 | 3 | public function setValue(?string $value): void |
|
117 | |||
118 | /** |
||
119 | * {@inheritdoc} |
||
120 | */ |
||
121 | 3 | public function getOwner(): ?string |
|
125 | |||
126 | /** |
||
127 | * {@inheritdoc} |
||
128 | */ |
||
129 | 3 | public function setOwner(?string $owner): void |
|
133 | |||
134 | /** |
||
135 | * @return \DateTimeInterface|null |
||
136 | */ |
||
137 | public function getCreatedAt(): ?\DateTimeInterface |
||
141 | |||
142 | /** |
||
143 | * @param \DateTimeInterface|null $createdAt |
||
144 | */ |
||
145 | public function setCreatedAt(?\DateTimeInterface $createdAt): void |
||
149 | |||
150 | /** |
||
151 | * @return \DateTimeInterface|null |
||
152 | */ |
||
153 | public function getUpdatedAt(): ?\DateTimeInterface |
||
157 | |||
158 | /** |
||
159 | * @param \DateTimeInterface|null $updatedAt |
||
160 | */ |
||
161 | public function setUpdatedAt(?\DateTimeInterface $updatedAt): void |
||
165 | |||
166 | /** |
||
167 | * {@inheritdoc} |
||
168 | */ |
||
169 | 3 | public function isEqual(SettingInterface $setting) |
|
173 | |||
174 | /** |
||
175 | * {@inheritdoc} |
||
176 | */ |
||
177 | 3 | public function isEquals(string $section, string $key, ?string $owner = null) |
|
183 | } |
||
184 |