| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 8 | trait WithVisibility |
||
| 9 | { |
||
| 10 | private readonly Visibility $visibility; |
||
| 11 | |||
| 12 | 6 | public function isPublic(): bool |
|
| 15 | } |
||
| 16 | |||
| 17 | 4 | public function isPrivate(): bool |
|
| 20 | } |
||
| 21 | |||
| 22 | 4 | public function isProtected(): bool |
|
| 25 | } |
||
| 26 | |||
| 27 | 7 | public function hasVisibility(Visibility $visibility): bool |
|
| 32 |