| 1 | <?php |
||
| 12 | class PropertyTemplate implements TemplateInterface |
||
| 13 | { |
||
| 14 | use VisibilityTrait; |
||
| 15 | |||
| 16 | private const TEMPLATE = ' |
||
| 17 | %s %s $%s; |
||
| 18 | '; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param \Reflector|\ReflectionProperty $property |
||
| 22 | * @return string |
||
| 23 | * @throws \RuntimeException |
||
| 24 | * @throws InvalidArgumentException |
||
| 25 | */ |
||
| 26 | 5 | public static function generate(\Reflector $property): string |
|
| 30 | |||
| 31 | /** |
||
| 32 | * @param \ReflectionProperty $property |
||
| 33 | * @return string |
||
| 34 | * @throws \RuntimeException |
||
| 35 | * @throws InvalidArgumentException |
||
| 36 | */ |
||
| 37 | 5 | protected static function doGenerate(\ReflectionProperty $property): string |
|
| 52 | } |
||
| 53 |