1 | <?php |
||
16 | class PhpInterface extends AbstractPhpStruct implements GenerateableInterface, ConstantsInterface { |
||
17 | |||
18 | use ConstantsPart; |
||
19 | use InterfacesPart; |
||
20 | |||
21 | /** |
||
22 | * Creates a PHP interface from reflection |
||
23 | * |
||
24 | * @deprecated Use fromFile() instead |
||
25 | * @param \ReflectionClass $ref |
||
26 | * @return PhpInterface |
||
27 | */ |
||
28 | public static function fromReflection(\ReflectionClass $ref) { |
||
29 | return static::fromFile($ref->getFileName()); |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Creates a PHP interface from file |
||
34 | * |
||
35 | * @param string $filename |
||
36 | * @return PhpInterface |
||
37 | */ |
||
38 | 3 | public static function fromFile($filename) { |
|
48 | |||
49 | /** |
||
50 | * Create a new PHP interface |
||
51 | * |
||
52 | * @param string $name qualified name |
||
53 | */ |
||
54 | 10 | public function __construct($name = null) { |
|
59 | |||
60 | /** |
||
61 | * @inheritDoc |
||
62 | */ |
||
63 | 4 | public function generateDocblock() { |
|
70 | } |
||
71 |