/** * @see AttachableEntityInterface::setAttachableEntityManager() */ public function setAttachableEntityManager(AttachableEntityManager $attachableEntityManager) { if (isset($this->attachableEntityManager)) { throw new LogicException('Attachable entity manager is already set'); } $this->attachableEntityManager = $attachableEntityManager->setReferences($this->attachableEntityReferences); return $this; }
/** * @covers ::__construct() * @covers ::setReferences() */ public function testSetReferencesReturnsItself() { $references = []; $this->assertSame($this->attachableEntityManager, $this->attachableEntityManager->setReferences($references)); }