PHP Class Nelmio\Alice\Definition\Value\FixtureMatchReferenceValue

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

Méthodes publiques

Méthode Description
__construct ( string $pattern )
__toString ( ) : string
createWildcardReference ( string $reference ) : self
getValue ( ) : string
match ( string $value ) : boolean

Method Details

__construct() public méthode

public __construct ( string $pattern )
$pattern string

__toString() public méthode

public __toString ( ) : string
Résultat string

createWildcardReference() public static méthode

public static createWildcardReference ( string $reference ) : self
$reference string e.g. 'user'
Résultat self reference with the pattern to match "@user*"

getValue() public méthode

public getValue ( ) : string
Résultat string

match() public méthode

public match ( string $value ) : boolean
$value string
Résultat boolean