Eloquent\Phony\Matcher\AnyMatcher::instance PHP Method

instance() public static method

Get the static instance of this matcher.
public static instance ( ) : Eloquent\Phony\Matcher\Matcher
return Eloquent\Phony\Matcher\Matcher The static matcher.
    public static function instance()
    {
        if (!self::$instance) {
            self::$instance = new self();
        }
        return self::$instance;
    }

Usage Example

Beispiel #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