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