1 | <?php |
||
21 | class PhpClass extends AbstractPhpStruct implements GenerateableInterface, TraitsInterface, ConstantsInterface, PropertiesInterface { |
||
22 | |||
23 | use AbstractPart; |
||
24 | use ConstantsPart; |
||
25 | use FinalPart; |
||
26 | use InterfacesPart; |
||
27 | use PropertiesPart; |
||
28 | use TraitsPart; |
||
29 | |||
30 | /** @var string */ |
||
31 | private $parentClassName; |
||
32 | |||
33 | /** |
||
34 | * Creates a PHP class from file |
||
35 | * |
||
36 | * @param string $filename |
||
37 | * @return PhpClass |
||
38 | */ |
||
39 | 10 | public static function fromFile($filename) { |
|
50 | |||
51 | /** |
||
52 | * Creates a new PHP class |
||
53 | * |
||
54 | * @param string $name the qualified name |
||
55 | */ |
||
56 | 44 | public function __construct($name = null) { |
|
62 | |||
63 | /** |
||
64 | * Returns the parent class name |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | 14 | public function getParentClassName() { |
|
71 | |||
72 | /** |
||
73 | * Sets the parent class name |
||
74 | * |
||
75 | * @param string|null $name the new parent |
||
76 | * @return $this |
||
77 | */ |
||
78 | 4 | public function setParentClassName($name) { |
|
83 | |||
84 | 5 | public function generateDocblock() { |
|
95 | |||
96 | } |
||
97 |