PHP Class Eloquent\Phony\Matcher\WrappedMatcher

Inheritance: implements Eloquent\Phony\Matcher\Matcher
ファイルを表示 Open project: eloquent/phony

Protected Properties

Property Type Description
$matcher

Public Methods

Method Description
__construct ( object $matcher ) Construct a new wrapped matcher.
__toString ( ) : string Describe this matcher.
describe ( Eloquent\Phony\Exporter\Exporter $exporter = null ) : string Describe this matcher.
matcher ( ) : object Get the wrapped matcher.
matches ( mixed $value ) : boolean Returns true if $value matches this matcher's criteria.

Method Details

__construct() public method

Construct a new wrapped matcher.
public __construct ( object $matcher )
$matcher object The matcher to wrap.

__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.

matcher() public method

Get the wrapped matcher.
public matcher ( ) : object
return object The 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.

Property Details

$matcher protected_oe property

protected $matcher