/** * Get the static instance of this matcher. * * @return WildcardMatcher The static matcher. */ public static function instance() { if (!self::$instance) { self::$instance = new self(AnyMatcher::instance(), 0, null); } 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; }