| Total Complexity | 5 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class Interface_ extends Base |
||
| 9 | { |
||
| 10 | function getType(): string |
||
|
|
|||
| 11 | { |
||
| 12 | return FullyQualifiedStructuralElementName::TYPE_INTERFACE; |
||
| 13 | } |
||
| 14 | |||
| 15 | public function include(Base $that): bool |
||
| 16 | { |
||
| 17 | return $this->getFullyQualifiedClassName() === $that->getFullyQualifiedClassName(); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function isInterface(): bool |
||
| 21 | { |
||
| 22 | return true; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getFullyQualifiedNamespaceName(): array |
||
| 31 | } |
||
| 32 | |||
| 33 | public function getFullyQualifiedClassName(): ?array |
||
| 34 | { |
||
| 38 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.