public function getFilter($name) { if (!array_key_exists($name, $this->filters)) { throw new \RuntimeException('There is no filter for the name "' . $name . '" registered.'); } return $this->filters[$name]; }