Inheritance: implements Eloquent\Phony\Matcher\Matcher
コード例 #1
0
ファイル: WildcardMatcher.php プロジェクト: eloquent/phony
 /**
  * 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;
 }
コード例 #2
0
ファイル: MatcherFactory.php プロジェクト: eloquent/phony
 /**
  * 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;
 }