/** * @test */ public function setTitleForStringSetsTitle() { $this->fixture->setTitle('Conceived at T3CON10'); $this->assertSame('Conceived at T3CON10', $this->fixture->getTitle()); }
/** * @param \Bjr\BjrLend\Domain\Model\Article $item * Initialisiert Position mit Artikeldaten */ public function initializeFrom(\Bjr\BjrLend\Domain\Model\Article $item) { $this->setArticleTitle($item->getTitle()); $this->setArticleFee($item->getFee()); $this->setLendConditions($item->getLendConditions()); $this->setOrganizationName($item->getOrganization()->getName()); if (is_object($item->getOrganization()->getAddress())) { $this->setOrganizationStreet($item->getOrganization()->getAddress()->getStreet()); $this->setOrganizationZip($item->getOrganization()->getAddress()->getZip()); $this->setOrganizationCity($item->getOrganization()->getAddress()->getCity()); $this->setOrganizationPhone($item->getOrganization()->getAddress()->getPhone()); $this->setOrganizationEmail($item->getOrganization()->getAddress()->getEmail()); } $this->setArticle($item); }
/** * @param Article $article * Initialisiert Item mit Artikeldaten */ protected function initializeFrom(\Bjr\BjrLend\Domain\Model\Article $article) { $this->setArticleUid($article->getUid()); $this->setTitle($article->getTitle()); $this->setDescription($article->getDescription()); $this->setShortDescription($article->getShortDescription()); $this->setFee($article->getFee()); $this->setOrganization($article->getOrganization()); $this->setCategory($article->getCategory()); //$this->setImage($article->getImage()); $this->setImage($article->getUrlForImage()); $this->setEmail($article->getEmail()); $this->setPhone($article->getPhone()); $this->setLendConditions($article->getLendConditions()); }