PHP Class gossi\codegen\model\PhpConstant

Author: Thomas Gossmann
Inheritance: extends AbstractModel, implements gossi\codegen\model\GenerateableInterface, implements gossi\codegen\model\DocblockInterface, implements gossi\codegen\model\ValueInterface, use trait gossi\codegen\model\parts\DocblockPart, use trait gossi\codegen\model\parts\LongDescriptionPart, use trait gossi\codegen\model\parts\NamePart, use trait gossi\codegen\model\parts\TypeDocblockGeneratorPart, use trait gossi\codegen\model\parts\TypePart, use trait gossi\codegen\model\parts\ValuePart
Mostra file Open project: gossi/php-code-generator Class Usage Examples

Public Methods

Method Description
__construct ( string $name = null, mixed $value = null, boolean $isExpression = false ) Creates a new PHP constant
create ( string $name = null, mixed $value = null, boolean $isExpression = false ) : static Creates a new PHP constant
generateDocblock ( )

Method Details

__construct() public method

Creates a new PHP constant
public __construct ( string $name = null, mixed $value = null, boolean $isExpression = false )
$name string
$value mixed
$isExpression boolean

create() public static method

Creates a new PHP constant
public static create ( string $name = null, mixed $value = null, boolean $isExpression = false ) : static
$name string
$value mixed
$isExpression boolean
return static

generateDocblock() public method

public generateDocblock ( )