Total Complexity | 6 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
10 | final class UseStatement |
||
11 | { |
||
12 | public function __construct(private Name $name, private ?Name $alias) |
||
13 | { |
||
14 | } |
||
15 | |||
16 | public function endsWith(Name $name): bool |
||
17 | { |
||
18 | return str_ends_with(haystack: (string) $this->name, needle: $name->removeArraySuffix()); |
||
19 | } |
||
20 | |||
21 | public function isAliasedAs(Name $name): bool |
||
24 | } |
||
25 | |||
26 | public function fullyQualifiedName(Name $name): string |
||
31 |