PHP Class Eloquent\Phony\Matcher\EqualToMatcher

Inheritance: implements Eloquent\Phony\Matcher\Matcher
Afficher le fichier Open project: eloquent/phony

Méthodes publiques

Méthode Description
__construct ( mixed $value, boolean $useSubstitution, Eloquent\Phony\Exporter\Exporter $exporter ) Construct a new equal to matcher.
__toString ( ) : string Describe this matcher.
describe ( Eloquent\Phony\Exporter\Exporter $exporter = null ) : string Describe this matcher.
matches ( mixed $value ) : boolean Returns true if $value matches this matcher's criteria.
value ( ) : mixed Get the value.

Method Details

__construct() public méthode

Construct a new equal to matcher.
public __construct ( mixed $value, boolean $useSubstitution, Eloquent\Phony\Exporter\Exporter $exporter )
$value mixed The value to check against.
$useSubstitution boolean True to use substitution for wrapper types.
$exporter Eloquent\Phony\Exporter\Exporter The exporter to use.

__toString() public méthode

Describe this matcher.
public __toString ( ) : string
Résultat string The description.

describe() public méthode

Describe this matcher.
public describe ( Eloquent\Phony\Exporter\Exporter $exporter = null ) : string
$exporter Eloquent\Phony\Exporter\Exporter The exporter to use.
Résultat string The description.

matches() public méthode

Returns true if $value matches this matcher's criteria.
public matches ( mixed $value ) : boolean
$value mixed The value to check.
Résultat boolean True if the value matches.

value() public méthode

Get the value.
public value ( ) : mixed
Résultat mixed The value.