public function getQueryType($name) { if (!isset($this->registry[$name])) { throw new InvalidArgumentException('QueryType name', 'No QueryType found with that name'); } return $this->registry[$name]; }