/** * @return Skeleton */ protected function skeleton() { if (!$this->skeleton) { $this->skeleton = new Skeleton(); $map = new TestMap($this->skeleton->getMap()); $this->skeleton->setMap($map); $map->override('a', 'a_val'); $map->override('b', 'b_val'); } return $this->skeleton; }
/** * @param Skeleton $skeleton */ public function __construct(Skeleton $skeleton) { $this->testMap = new TestMap($skeleton->getMap()); $skeleton->setMap($this->testMap); }