/** * Set structure prototype * * @param \Zork\Model\Structure\StructureAbstract $structurePrototype * @return \Zork\Model\Mapper\DbAware\ReadOnlyMapperAbstract */ public function setStructurePrototype($structurePrototype) { if ($structurePrototype instanceof MapperAwareInterface) { $structurePrototype->setMapper($this); } $this->structurePrototype = $structurePrototype; return $this; }