Total Complexity | 4 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | trait SoftDeleteConditions |
||
20 | { |
||
21 | use AbstractModel; |
||
22 | use AbstractQuery; |
||
23 | |||
24 | protected ?Collection $softDeleteConditions; |
||
25 | |||
26 | public function initializeSoftDeleteConditions(): void |
||
27 | { |
||
28 | $this->setSoftDeleteConditions(new Collection([ |
||
29 | 'default' => $this->defaultSoftDeleteCondition(), |
||
30 | ], false)); |
||
31 | } |
||
32 | |||
33 | public function setSoftDeleteConditions(?Collection $softDeleteConditions): void |
||
34 | { |
||
35 | $this->softDeleteConditions = $softDeleteConditions; |
||
36 | } |
||
37 | |||
38 | public function getSoftDeleteConditions(): ?Collection |
||
41 | } |
||
42 | |||
43 | public function defaultSoftDeleteCondition(): array|string|null |
||
55 |