PHP Class LeanMapper\Reflection\PropertyValuesEnum

Author: Vojtěch Kohout
显示文件 Open project: tharos/leanmapper Class Usage Examples

Public Methods

Method Description
__construct ( string $definition, EntityReflection $reflection )
getValues ( ) : array Gets possible enumeration values
isValueFromEnum ( mixed $value ) : boolean Tells wheter given value is from enumeration

Method Details

__construct() public method

public __construct ( string $definition, EntityReflection $reflection )
$definition string
$reflection EntityReflection

getValues() public method

Gets possible enumeration values
public getValues ( ) : array
return array

isValueFromEnum() public method

Tells wheter given value is from enumeration
public isValueFromEnum ( mixed $value ) : boolean
$value mixed
return boolean