| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | final class Decider implements VoterInterface |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * @var VoterInterface[] |
||
| 30 | */ |
||
| 31 | private array $voters = []; |
||
| 32 | |||
| 33 | public function add(VoterInterface $voter): self |
||
| 34 | { |
||
| 35 | $this->voters[] = $voter; |
||
| 36 | |||
| 37 | return $this; |
||
| 38 | } |
||
| 39 | |||
| 40 | public function canDelete(UserInterface $user): bool |
||
| 49 | } |
||
| 50 | } |
||
| 51 |