PHP Class gossi\codegen\model\PhpInterface

Author: Thomas Gossmann
Inheritance: extends AbstractPhpStruct, implements gossi\codegen\model\GenerateableInterface, implements gossi\codegen\model\ConstantsInterface, use trait gossi\codegen\model\parts\ConstantsPart, use trait gossi\codegen\model\parts\InterfacesPart
Mostrar archivo Open project: gossi/php-code-generator Class Usage Examples

Public Methods

Method Description
__construct ( string $name = null ) Create a new PHP interface
fromFile ( string $filename ) : PhpInterface Creates a PHP interface from file
fromReflection ( ReflectionClass $ref ) : PhpInterface Creates a PHP interface from reflection
generateDocblock ( )

Method Details

__construct() public method

Create a new PHP interface
public __construct ( string $name = null )
$name string qualified name

fromFile() public static method

Creates a PHP interface from file
public static fromFile ( string $filename ) : PhpInterface
$filename string
return PhpInterface

fromReflection() public static method

Creates a PHP interface from reflection
Deprecation: Use fromFile() instead
public static fromReflection ( ReflectionClass $ref ) : PhpInterface
$ref ReflectionClass
return PhpInterface

generateDocblock() public method

public generateDocblock ( )