Get the static instance of this matcher.
public static instance ( ) : |
||
return | The static matcher. |
/** * Get the static instance of this driver. * * @return MatcherDriver The static driver. */ public static function instance() { if (!self::$instance) { self::$instance = new self(WildcardMatcher::instance()); } return self::$instance; }
/** * Get the static instance of this factory. * * @return MatcherFactory The static factory. */ public static function instance() { if (!self::$instance) { self::$instance = new self(AnyMatcher::instance(), WildcardMatcher::instance(), InlineExporter::instance()); self::$instance->addDefaultMatcherDrivers(); } return self::$instance; }