Class AbstractMatcher
AbstractMatcher serves as the base for all Matchers.
- Peridot\Leo\Matcher\AbstractMatcher implements Peridot\Leo\Matcher\MatcherInterface
Direct known subclasses
Peridot\Leo\Matcher\CountableMatcher, Peridot\Leo\Matcher\EmptyMatcher, Peridot\Leo\Matcher\PredicateMatcher, Peridot\Leo\Matcher\PropertyMatcher, Peridot\Leo\Matcher\SameMatcher, Peridot\Leo\Matcher\SubStringMatcher, Peridot\Leo\Matcher\TrueMatcher, Peridot\Leo\Matcher\TruthyMatcher, Peridot\Leo\Matcher\TypeMatcher, Peridot\Leo\Matcher\EqualMatcher, Peridot\Leo\Matcher\ExceptionMatcher, Peridot\Leo\Matcher\InclusionMatcher, Peridot\Leo\Matcher\InstanceofMatcher, Peridot\Leo\Matcher\KeysMatcher, Peridot\Leo\Matcher\LengthMatcher, Peridot\Leo\Matcher\NullMatcher, Peridot\Leo\Matcher\PatternMatcherIndirect known subclasses
Peridot\Leo\Matcher\GreaterThanMatcher, Peridot\Leo\Matcher\GreaterThanOrEqualMatcher, Peridot\Leo\Matcher\LessThanMatcher, Peridot\Leo\Matcher\LessThanOrEqualMatcher, Peridot\Leo\Matcher\RangeMatcher
Abstract
Namespace: Peridot\Leo\Matcher
Package: Peridot\Leo\Matcher
Located at Matcher/AbstractMatcher.php
Methods summary
Namespace: Peridot\Leo\Matcher
Package: Peridot\Leo\Matcher
Located at Matcher/AbstractMatcher.php
public
public
boolean
public
mixed
#
$this
invert( )
Inverts a matcher. If a matcher is not negated, it will become negated. If a matcher is negated, it will no longer be negated.
Inverts a matcher. If a matcher is not negated, it will become negated. If a matcher is negated, it will no longer be negated.
Returns
mixed
$this
Implementation of
public
Peridot\Leo\Matcher\Match
public
Peridot\Leo\Matcher\Template\TemplateInterface
#
getTemplate( )
Return the TemplateInterface being used by the matcher.
Return the TemplateInterface being used by the matcher.
Returns
Implementation of
public
mixed
#
$this
setTemplate( Peridot\Leo\Matcher\Template\TemplateInterface
$template )
Set the TemplateInterface to use for formatting match results.
Set the TemplateInterface to use for formatting match results.
Parameters
- $template
Returns
mixed
$this
Implementation of
public
mixed
#
$this
setAssertion( Peridot\Leo\Assertion
$assertion )
Set the Assertion bound to the matcher. Useful for checking flags from within a matcher.
Set the Assertion bound to the matcher. Useful for checking flags from within a matcher.
Parameters
- $assertion
Returns
mixed
$this
Implementation of
abstract protected
boolean