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 | 7 | public function __construct( |
|
42 | |||
43 | /** |
||
44 | * @param bool $isAbstract |
||
45 | * |
||
46 | * @return ClassGenerator |
||
47 | */ |
||
48 | 1 | public function setAbstract(bool $isAbstract): self |
|
54 | |||
55 | /** |
||
56 | * @param bool $isFinal |
||
57 | * |
||
58 | * @return static |
||
59 | */ |
||
60 | 1 | public function setFinal(bool $isFinal): self |
|
66 | |||
67 | /** |
||
68 | * @param string $fullyQualifiedInterfaceName |
||
69 | * |
||
70 | * @return static |
||
71 | */ |
||
72 | 1 | public function implementInterface(string $fullyQualifiedInterfaceName): self |
|
80 | |||
81 | /** |
||
82 | * @param string $fullyQualifiedTraitName |
||
83 | * |
||
84 | * @return static |
||
85 | */ |
||
86 | 1 | public function useTrait(string $fullyQualifiedTraitName): self |
|
94 | |||
95 | /** |
||
96 | * @inheritDoc |
||
97 | */ |
||
98 | 3 | protected function scope(): string |
|
102 | |||
103 | /** |
||
104 | * @inheritDoc |
||
105 | */ |
||
106 | 7 | protected function generateScope(): string |
|
112 | |||
113 | /** |
||
114 | * @return string |
||
115 | */ |
||
116 | 7 | protected function generateFlags(): string |
|
128 | |||
129 | /** |
||
130 | * @return string |
||
131 | */ |
||
132 | 7 | protected function generateImplements(): string |
|
140 | |||
141 | /** |
||
142 | * @return string |
||
143 | */ |
||
144 | 7 | protected function generateUses(): string |
|
152 | } |
||
153 |