| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class InterfaceDefinition implements HasNodeIdentifier |
||
| 14 | { |
||
| 15 | use ObjectHashIdentifier; |
||
| 16 | |||
| 17 | /** @var string */ |
||
| 18 | public $name; |
||
| 19 | |||
| 20 | /** @var Method[] */ |
||
| 21 | public $functions; |
||
| 22 | |||
| 23 | /** @var InterfaceDefinition */ |
||
| 24 | public $extends; |
||
| 25 | |||
| 26 | public function __construct(string $name, array $functions = [], $extends = null) |
||
| 27 | { |
||
| 28 | $this->name = $name; |
||
| 29 | $this->functions = $functions; |
||
| 30 | $this->extends = $extends; |
||
| 31 | } |
||
| 32 | |||
| 33 | public function hasParent(): bool |
||
| 36 | } |
||
| 37 | } |
||
| 38 |