Esempio n. 1
0
 /**
  * Method to check if the Entity not satisfies the Specifications (NOT).
  * @param IEntity $entity The Entity which will be checked.
  * @return bool The state if the Entity not satisfies the Specifications (NOT).
  * @since 0.0.1-dev
  */
 public function isSatisfiedBy(IEntity $entity)
 {
     return !$this->specification->isSatisfiedBy($entity);
 }
Esempio n. 2
0
 /**
  * Method to check if the Entity satisfies the Specifications (AND).
  * @param IEntity $entity The Entity which will be checked.
  * @return bool The state if the Entity satisfies the Specifications (AND).
  * @since 0.0.1-dev
  */
 public function isSatisfiedBy(IEntity $entity)
 {
     return $this->leftSpecification->isSatisfiedBy($entity) && $this->rightSpecification->isSatisfiedBy($entity);
 }