Lines Matching refs:Builder
32 * @return Builder\Namespace_ The created namespace builder
34 public function namespace($name): Builder\Namespace_ {
35 return new Builder\Namespace_($name);
43 * @return Builder\Class_ The created class builder
45 public function class(string $name): Builder\Class_ {
46 return new Builder\Class_($name);
54 * @return Builder\Interface_ The created interface builder
56 public function interface(string $name): Builder\Interface_ {
57 return new Builder\Interface_($name);
65 * @return Builder\Trait_ The created trait builder
67 public function trait(string $name): Builder\Trait_ {
68 return new Builder\Trait_($name);
76 * @return Builder\Enum_ The created enum builder
78 public function enum(string $name): Builder\Enum_ {
79 return new Builder\Enum_($name);
87 * @return Builder\TraitUse The created trait use builder
89 public function useTrait(...$traits): Builder\TraitUse {
90 return new Builder\TraitUse(...$traits);
99 * @return Builder\TraitUseAdaptation The created trait use adaptation builder
101 public function traitUseAdaptation($trait, $method = null): Builder\TraitUseAdaptation {
107 return new Builder\TraitUseAdaptation($trait, $method);
115 * @return Builder\Method The created method builder
117 public function method(string $name): Builder\Method {
118 return new Builder\Method($name);
126 * @return Builder\Param The created parameter builder
128 public function param(string $name): Builder\Param {
129 return new Builder\Param($name);
137 * @return Builder\Property The created property builder
139 public function property(string $name): Builder\Property {
140 return new Builder\Property($name);
148 * @return Builder\Function_ The created function builder
150 public function function(string $name): Builder\Function_ {
151 return new Builder\Function_($name);
159 * @return Builder\Use_ The created use builder
161 public function use($name): Builder\Use_ {
162 return new Builder\Use_($name, Use_::TYPE_NORMAL);
170 * @return Builder\Use_ The created use function builder
172 public function useFunction($name): Builder\Use_ {
173 return new Builder\Use_($name, Use_::TYPE_FUNCTION);
181 * @return Builder\Use_ The created use const builder
183 public function useConst($name): Builder\Use_ {
184 return new Builder\Use_($name, Use_::TYPE_CONSTANT);
193 * @return Builder\ClassConst The created use const builder
195 public function classConst($name, $value): Builder\ClassConst {
196 return new Builder\ClassConst($name, $value);
204 * @return Builder\EnumCase The created use const builder
206 public function enumCase($name): Builder\EnumCase {
207 return new Builder\EnumCase($name);