PHP Class gossi\codegen\model\PhpTrait

Author: Thomas Gossmann
Inheritance: extends AbstractPhpStruct, implements gossi\codegen\model\GenerateableInterface, implements gossi\codegen\model\TraitsInterface, implements gossi\codegen\model\PropertiesInterface, use trait gossi\codegen\model\parts\PropertiesPart, use trait gossi\codegen\model\parts\TraitsPart
Datei anzeigen Open project: gossi/php-code-generator Class Usage Examples

Public Methods

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

Method Details

__construct() public method

Creates a new PHP trait
public __construct ( string $name = null )
$name string qualified name

fromFile() public static method

Creates a PHP trait from a file
public static fromFile ( string $filename ) : PhpTrait
$filename string
return PhpTrait

fromReflection() public static method

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

generateDocblock() public method

public generateDocblock ( )