PHP Class Eloquent\Phony\Matcher\AnyMatcher

Inheritance: implements Eloquent\Phony\Matcher\Matcher
Mostra file Open project: eloquent/phony Class Usage Examples

Public Methods

Method Description
__toString ( ) : string Describe this matcher.
describe ( Eloquent\Phony\Exporter\Exporter $exporter = null ) : string Describe this matcher.
instance ( ) : Eloquent\Phony\Matcher\Matcher Get the static instance of this matcher.
matches ( mixed $value ) : boolean Returns true if $value matches this matcher's criteria.

Method Details

__toString() public method

Describe this matcher.
public __toString ( ) : string
return string The description.

describe() public method

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

instance() public static method

Get the static instance of this matcher.
public static instance ( ) : Eloquent\Phony\Matcher\Matcher
return Eloquent\Phony\Matcher\Matcher The static matcher.

matches() public method

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