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
Afficher le fichier Open project: gossi/php-code-generator Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

fromFile() public static méthode

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

fromReflection() public static méthode

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

generateDocblock() public méthode

public generateDocblock ( )