Ejemplo n.º 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);
 }
Ejemplo n.º 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);
 }