public function getDefinition($name) { if (!isset($this->definitions[$name])) { throw new IllegalFieldException("Factory does not posses definition [{$name}]."); } return $this->definitions[$name]; }