Exemplo n.º 1
0
 public function matches(LinkConstraintInterface $provider)
 {
     if ($provider instanceof MultiConstraint) {
         return $provider->matches($this);
     } elseif ($provider instanceof $this) {
         return $this->matchSpecific($provider);
     }
     return true;
 }
Exemplo n.º 2
0
 /**
  * @param LinkConstraintInterface $provider
  *
  * @return bool
  */
 public function matches(LinkConstraintInterface $provider)
 {
     if ($provider instanceof MultiConstraint) {
         // turn matching around to find a match
         return $provider->matches($this);
     } elseif ($provider instanceof $this) {
         // see note at bottom of this class declaration
         return $this->matchSpecific($provider);
     }
     return true;
 }