Thruway\Subscription\MatcherInterface::getMatchTypes PHP Метод

getMatchTypes() публичный Метод

public getMatchTypes ( ) : array
Результат array
    public function getMatchTypes();

Usage Example

Пример #1
0
 /**
  * @param MatcherInterface $matcher
  * @return bool
  */
 public function addMatcher(MatcherInterface $matcher)
 {
     foreach ($matcher->getMatchTypes() as $matchType) {
         if (isset($this->matchers[$matchType])) {
             return false;
         }
     }
     foreach ($matcher->getMatchTypes() as $matchType) {
         $this->matchers[$matchType] = $matcher;
     }
     return true;
 }