$v) { if (!is_int($k)) { throw new Exception(Exception::LIST_INVALID_TYPE, 'Integer', 'supplied array index', gettype($k)); } if (!$v instanceof GrammarInclude && !$v instanceof Rule && !$v instanceof RuleList) { throw new Exception(Exception::LIST_INVALID_TYPE, __NAMESPACE__.'\GrammarInclude, '.__NAMESPACE__.'\Rule, or '.__NAMESPACE__.'\RuleList', 'supplied array value', gettype($v)); } } $this->storage = $array; } }