input() public method

public input ( ) : GeneratedValue | mixed
return GeneratedValue | mixed
Exemplo n.º 1
0
 public function contains(GeneratedValue $set)
 {
     foreach ($set->input() as $element) {
         if (!$this->singleElementGenerator->contains($element)) {
             return false;
         }
     }
     return true;
 }
Exemplo n.º 2
0
 public function contains(GeneratedValue $set)
 {
     foreach ($set->input() as $element) {
         if (!in_array($element, $this->universe)) {
             return false;
         }
     }
     return true;
 }
Exemplo n.º 3
0
 public function contains(GeneratedValue $tuple)
 {
     $input = $tuple->input();
     if (!is_array($input)) {
         throw new \Exception("Input must be an array, not " . var_export($input, true));
     }
     if (count($input) !== $this->numberOfGenerators) {
         return false;
     }
     for ($i = 0; $i < $this->numberOfGenerators; $i++) {
         if (!$this->generators[$i]->contains($input[$i])) {
             return false;
         }
     }
     return true;
 }
Exemplo n.º 4
0
 public function contains(GeneratedValue $element)
 {
     $input = $element->input();
     $originalGeneratorIndex = $input['generator'];
     return $this->generators[$originalGeneratorIndex]['generator']->contains($input['value']);
 }
Exemplo n.º 5
0
 public function contains(GeneratedValue $element)
 {
     return $this->value === $element->input();
 }
Exemplo n.º 6
0
 public function contains(GeneratedValue $element)
 {
     return is_int($element->input());
 }
Exemplo n.º 7
0
 public function contains(GeneratedValue $value)
 {
     return $this->generator->contains($value->input());
 }
 public function contains(GeneratedValue $element)
 {
     return $this->tupleGenerator->contains($element->input());
 }
Exemplo n.º 9
0
 public function contains(GeneratedValue $element)
 {
     return is_int($element->input()) && $element->input() >= $this->lowerLimit && $element->input() <= $this->upperLimit;
 }
Exemplo n.º 10
0
 public function contains(GeneratedValue $element)
 {
     list($outerGeneratorValue, $innerGeneratorValue) = $element->input();
     $outerGenerator = call_user_func($this->outerGeneratorFactory, $innerGeneratorValue->unbox());
     return $outerGenerator->contains($outerGeneratorValue);
 }