Exemple #1
0
 public function is($value)
 {
     if (!is_array($value)) {
         return false;
     }
     foreach ($value as $item) {
         if (!$this->itemType->is($item)) {
             return false;
         }
     }
     return true;
 }
Exemple #2
0
 /**
  * @param mixed $value
  * @return boolean
  */
 public function is($value)
 {
     return $this->primitive->is($value);
 }
Exemple #3
0
 public function is($value)
 {
     return is_null($value) || $this->type->is($value);
 }