Eloquent\Phony\Matcher\AnyMatcher::instance PHP Метод

instance() публичный статический Метод

Get the static instance of this matcher.
public static instance ( ) : Eloquent\Phony\Matcher\Matcher
Результат Eloquent\Phony\Matcher\Matcher The static matcher.
    public static function instance()
    {
        if (!self::$instance) {
            self::$instance = new self();
        }
        return self::$instance;
    }

Usage Example

Пример #1
0
 /**
  * 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;
 }
All Usage Examples Of Eloquent\Phony\Matcher\AnyMatcher::instance