PHP Class Nelmio\Alice\Definition\Value\OptionalValue

Inheritance: implements Nelmio\Alice\Definition\ValueInterface
Afficher le fichier Open project: nelmio/alice Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( integer | Nelmio\Alice\Definition\ValueInterface $quantifier, string | Nelmio\Alice\Definition\ValueInterface $firstMember, string | Nelmio\Alice\Definition\ValueInterface | null $secondMember = null )
__toString ( ) : string
getFirstMember ( ) : string | Nelmio\Alice\Definition\ValueInterface
getQuantifier ( ) : integer | Nelmio\Alice\Definition\ValueInterface
getSecondMember ( ) : Nelmio\Alice\Definition\ValueInterface | null | string
getValue ( ) : array

Method Details

__construct() public méthode

public __construct ( integer | Nelmio\Alice\Definition\ValueInterface $quantifier, string | Nelmio\Alice\Definition\ValueInterface $firstMember, string | Nelmio\Alice\Definition\ValueInterface | null $secondMember = null )
$quantifier integer | Nelmio\Alice\Definition\ValueInterface
$firstMember string | Nelmio\Alice\Definition\ValueInterface
$secondMember string | Nelmio\Alice\Definition\ValueInterface | null

__toString() public méthode

public __toString ( ) : string
Résultat string

getFirstMember() public méthode

public getFirstMember ( ) : string | Nelmio\Alice\Definition\ValueInterface
Résultat string | Nelmio\Alice\Definition\ValueInterface

getQuantifier() public méthode

public getQuantifier ( ) : integer | Nelmio\Alice\Definition\ValueInterface
Résultat integer | Nelmio\Alice\Definition\ValueInterface

getSecondMember() public méthode

public getSecondMember ( ) : Nelmio\Alice\Definition\ValueInterface | null | string
Résultat Nelmio\Alice\Definition\ValueInterface | null | string

getValue() public méthode

public getValue ( ) : array
Résultat array The first element is the quantifier and the second the elements.