PHP Interface gossi\codegen\model\ValueInterface

Show file Open project: gossi/php-code-generator Interface Usage Examples

Public Methods

Method 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 method

Returns the expression
public getExpression ( ) : string
return string

getValue() public method

Returns the value
public getValue ( ) : mixed
return mixed

hasValue() public method

Checks whether a value or expression is set
public hasValue ( ) : boolean
return boolean

isExpression() public method

Returns whether an expression is set
public isExpression ( ) : boolean
return boolean

setExpression() public method

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

setValue() public method

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

unsetExpression() public method

Unsets the expression
public unsetExpression ( )

unsetValue() public method

Unsets the value
public unsetValue ( )