/** * @param mixed $key * * @return bool */ private function isValidKeyType($key) { return TypeHelper::isOfType($key, $this->keyType); }
/** * @param mixed $element * * @return bool */ private function isValidType($element) { return TypeHelper::isOfType($element, $this->type); }