Esempio n. 1
0
 /**
  * Check if specification satisfied by given value
  * @param mixed $value
  * @return bool
  */
 public function isSatisfiedBy($value)
 {
     return $this->left->isSatisfiedBy($value) && $this->right->isSatisfiedBy($value);
 }
Esempio n. 2
0
 /**
  * Determines whether or not the
  * passed in value is satisfied by
  * the specification or not
  * @param $value
  * @return bool
  */
 public function isSatisfiedBy($value)
 {
     return $this->specOne->isSatisfiedBy($value) && $this->specTwo->isSatisfiedBy($value);
 }
Esempio n. 3
0
 /**
  * {@inheritDoc}
  */
 public function isSatisfiedBy($value)
 {
     return !$this->wrapped->isSatisfiedBy($value);
 }
Esempio n. 4
0
 /**
  * Checks if the current transition satisfies the specifiation on the given context.
  *
  * @param ContextInterface $context
  *
  * @return bool
  */
 public function isOpen(ContextInterface $context)
 {
     return $this->spec->isSatisfiedBy($context);
 }
Esempio n. 5
0
 /**
  * {@inheritDoc}
  */
 public function isSatisfiedBy($value)
 {
     return $this->x->isSatisfiedBy($value) && $this->y->isSatisfiedBy($value);
 }
 public function isSatisfiedBy(Item $item) : bool
 {
     return !$this->specification->isSatisfiedBy($item);
 }