1 | <?php |
||
19 | class PhpTrait extends AbstractPhpStruct implements GenerateableInterface, TraitsInterface, PropertiesInterface { |
||
20 | |||
21 | use PropertiesPart; |
||
22 | use TraitsPart; |
||
23 | |||
24 | /** |
||
25 | * Creates a PHP trait from a file |
||
26 | * |
||
27 | * @param string $filename |
||
28 | * @return PhpTrait |
||
29 | */ |
||
30 | 1 | public static function fromFile(string $filename): self { |
|
41 | |||
42 | /** |
||
43 | * Creates a new PHP trait |
||
44 | * |
||
45 | * @param string $name qualified name |
||
46 | */ |
||
47 | 7 | public function __construct($name = null) { |
|
51 | |||
52 | /** |
||
53 | * @inheritDoc |
||
54 | */ |
||
55 | 3 | public function generateDocblock(): void { |
|
62 | } |
||
63 |