Inheritance: implements Eloquent\Phony\Matcher\Matchable
Esempio n. 1
0
 /**
  * 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;
 }
Esempio n. 2
0
 /**
  * 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;
 }