public function getParam($name) { if (!array_key_exists($name, $this->params)) { throw new IllegalFieldException("Factory does not posses param [{$name}]."); } return $this->invoke($this->params[$name]); }