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

instance() public static method

Get the static instance of this matcher.
public static instance ( ) : WildcardMatcher
return WildcardMatcher The static matcher.
    public static function instance()
    {
        if (!self::$instance) {
            self::$instance = new self(AnyMatcher::instance(), 0, null);
        }
        return self::$instance;
    }

Usage Example

Example #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;
 }
All Usage Examples Of Eloquent\Phony\Matcher\WildcardMatcher::instance