Exemple #1
0
 /**
  * Whether specification is satisfied.
  *
  * @param T_Auth $auth
  * @return bool
  */
 function isSatisfiedBy($auth)
 {
     return $this->spec->isSatisfiedBy($auth) || $this->or_spec->isSatisfiedBy($auth);
 }
Exemple #2
0
 /**
  * Whether specification is satisfied.
  *
  * @param T_Auth $auth
  * @return bool
  */
 function isSatisfiedBy($auth)
 {
     return $this->spec->isSatisfiedBy($auth) && $this->and_spec->isSatisfiedBy($auth);
 }