1 | <?php |
||
17 | class PhpTrait extends AbstractPhpStruct implements GenerateableInterface, TraitsInterface, PropertiesInterface { |
||
18 | |||
19 | use PropertiesPart; |
||
20 | use TraitsPart; |
||
21 | |||
22 | /** |
||
23 | * Creates a PHP trait from a file |
||
24 | * |
||
25 | * @param string $filename |
||
26 | * @return PhpTrait |
||
27 | */ |
||
28 | 1 | public static function fromFile($filename) { |
|
39 | |||
40 | /** |
||
41 | * Creates a new PHP trait |
||
42 | * |
||
43 | * @param string $name qualified name |
||
44 | */ |
||
45 | 7 | public function __construct($name = null) { |
|
49 | |||
50 | /** |
||
51 | * @inheritDoc |
||
52 | */ |
||
53 | 3 | public function generateDocblock() { |
|
60 | } |
||
61 |