PHP Class LeanMapper\Reflection\PropertyValuesEnum

Author: Vojtěch Kohout
Afficher le fichier Open project: tharos/leanmapper Class Usage Examples

Méthodes publiques

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

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

getValues() public méthode

Gets possible enumeration values
public getValues ( ) : array
Résultat array

isValueFromEnum() public méthode

Tells wheter given value is from enumeration
public isValueFromEnum ( mixed $value ) : boolean
$value mixed
Résultat boolean