| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | final class ExcludeInternalTrait implements TraitBased |
||
| 15 | { |
||
| 16 | /** @var TraitBased */ |
||
| 17 | private $check; |
||
| 18 | |||
| 19 | public function __construct(TraitBased $check) |
||
| 20 | { |
||
| 21 | $this->check = $check; |
||
| 22 | } |
||
| 23 | |||
| 24 | public function __invoke(ReflectionClass $fromInterface, ReflectionClass $toInterface) : Changes |
||
| 25 | { |
||
| 26 | if ($this->isInternalDocComment($fromInterface->getDocComment())) { |
||
| 27 | return Changes::empty(); |
||
| 28 | } |
||
| 29 | |||
| 30 | return $this->check->__invoke($fromInterface, $toInterface); |
||
| 31 | } |
||
| 32 | |||
| 33 | private function isInternalDocComment(string $comment) : bool |
||
| 36 | } |
||
| 37 | } |
||
| 38 |