PHP Interface gossi\codegen\model\ValueInterface

Afficher le fichier Open project: gossi/php-code-generator Interface Usage Examples

Méthodes publiques

Méthode Description
getExpression ( ) : string Returns the expression
getValue ( ) : mixed Returns the value
hasValue ( ) : boolean Checks whether a value or expression is set
isExpression ( ) : boolean Returns whether an expression is set
setExpression ( string $expr ) Sets an expression
setValue ( mixed $value ) Sets the value
unsetExpression ( ) Unsets the expression
unsetValue ( ) Unsets the value

Method Details

getExpression() public méthode

Returns the expression
public getExpression ( ) : string
Résultat string

getValue() public méthode

Returns the value
public getValue ( ) : mixed
Résultat mixed

hasValue() public méthode

Checks whether a value or expression is set
public hasValue ( ) : boolean
Résultat boolean

isExpression() public méthode

Returns whether an expression is set
public isExpression ( ) : boolean
Résultat boolean

setExpression() public méthode

Sets an expression
public setExpression ( string $expr )
$expr string

setValue() public méthode

Sets the value
public setValue ( mixed $value )
$value mixed

unsetExpression() public méthode

Unsets the expression
public unsetExpression ( )

unsetValue() public méthode

Unsets the value
public unsetValue ( )