1 | <?php |
||
12 | class ClassGenerator extends ClassAwareGenerator |
||
13 | { |
||
14 | /** |
||
15 | * @var Flag |
||
16 | */ |
||
17 | protected $flag; |
||
18 | |||
19 | /** |
||
20 | * @var string[] |
||
21 | */ |
||
22 | protected $interfaces = []; |
||
23 | |||
24 | /** |
||
25 | * @var string[] |
||
26 | */ |
||
27 | protected $traits = []; |
||
28 | |||
29 | /** |
||
30 | * @inheritDoc |
||
31 | */ |
||
32 | 9 | public function __construct( |
|
43 | |||
44 | /** |
||
45 | * @param bool $isAbstract |
||
46 | * |
||
47 | * @return ClassGenerator |
||
48 | */ |
||
49 | 1 | public function setAbstract(bool $isAbstract): self |
|
55 | |||
56 | /** |
||
57 | * @param bool $isFinal |
||
58 | * |
||
59 | * @return static |
||
60 | */ |
||
61 | 1 | public function setFinal(bool $isFinal): self |
|
67 | |||
68 | /** |
||
69 | * @param string $fullyQualifiedInterfaceName |
||
70 | * |
||
71 | * @return static |
||
72 | */ |
||
73 | 1 | public function implementInterface(string $fullyQualifiedInterfaceName): self |
|
81 | |||
82 | /** |
||
83 | * @param string $fullyQualifiedTraitName |
||
84 | * |
||
85 | * @return static |
||
86 | */ |
||
87 | 1 | public function useTrait(string $fullyQualifiedTraitName): self |
|
95 | |||
96 | /** |
||
97 | * @inheritDoc |
||
98 | */ |
||
99 | 4 | protected function scope(): string |
|
103 | |||
104 | /** |
||
105 | * @inheritDoc |
||
106 | */ |
||
107 | 9 | protected function generateScope(): string |
|
111 | |||
112 | /** |
||
113 | * @return string |
||
114 | */ |
||
115 | 9 | protected function generateFlags(): string |
|
127 | |||
128 | /** |
||
129 | * @return string |
||
130 | */ |
||
131 | 9 | protected function generateImplements(): string |
|
139 | |||
140 | /** |
||
141 | * @return string |
||
142 | */ |
||
143 | 9 | protected function generateUses(): string |
|
151 | } |
||
152 |