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