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