PHP Class Nelmio\Alice\Definition\Value\FixtureMatchReferenceValue

Inheritance: implements Nelmio\Alice\Definition\ValueInterface
ファイルを表示 Open project: nelmio/alice Class Usage Examples

Public Methods

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

Method Details

__construct() public method

public __construct ( string $pattern )
$pattern string

__toString() public method

public __toString ( ) : string
return string

createWildcardReference() public static method

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

getValue() public method

public getValue ( ) : string
return string

match() public method

public match ( string $value ) : boolean
$value string
return boolean