Total Complexity | 4 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class PropertyChangeTracker |
||
8 | { |
||
9 | /** @var array<string,bool> */ |
||
10 | private array $changedProperties = []; |
||
11 | |||
12 | public function markAsChanged(string $propertyName): void |
||
15 | } |
||
16 | |||
17 | public function markAsUnchanged(string $propertyName): void |
||
18 | { |
||
19 | $this->changedProperties[$propertyName] = false; |
||
20 | } |
||
21 | |||
22 | public function isChanged(string $propertyName): bool |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return array<string,bool> |
||
29 | */ |
||
30 | public function getAll(): array |
||
33 | } |
||
34 | } |
||
35 |