| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | trait WithVisibility |
||
| 11 | { |
||
| 12 | /** @var Visibility */ |
||
| 13 | private $modifier; |
||
| 14 | |||
| 15 | public function isPublic(): bool |
||
| 18 | } |
||
| 19 | |||
| 20 | public function isPrivate(): bool |
||
| 21 | { |
||
| 22 | return $this->hasVisibility(Visibility::private()); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function isProtected(): bool |
||
| 28 | } |
||
| 29 | |||
| 30 | public function hasVisibility(Visibility $modifier): bool |
||
| 35 |