1 | <?php |
||
16 | final class ChildClassDeclaration implements DeclarationInterface |
||
17 | { |
||
18 | /** @var string */ |
||
19 | private $shortName; |
||
20 | |||
21 | /** @var string|null */ |
||
22 | private $namespace; |
||
23 | |||
24 | /** |
||
25 | * @param string $name |
||
26 | * @param DeclarationInterface $parent |
||
27 | */ |
||
28 | public function __construct(string $name, DeclarationInterface $parent) |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | public function getShortName(): string |
||
41 | |||
42 | /** |
||
43 | * @return string|null |
||
44 | */ |
||
45 | public function getNamespaceName(): ?string |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getFullName(): string |
||
61 | |||
62 | /** |
||
63 | * @param string $class |
||
64 | * @return string |
||
65 | */ |
||
66 | private function makeShortName(string $class): string |
||
76 | |||
77 | /** |
||
78 | * @param string $class |
||
79 | * @param DeclarationInterface $parent |
||
80 | * @return string|null |
||
81 | */ |
||
82 | private function makeNamespaceName(string $class, DeclarationInterface $parent): ?string |
||
96 | } |
||
97 |