コード例 #1
0
 /**
  * @test
  */
 public function setShortDescriptionForStringSetsShortDescription()
 {
     $this->fixture->setShortDescription('Conceived at T3CON10');
     $this->assertSame('Conceived at T3CON10', $this->fixture->getShortDescription());
 }
コード例 #2
0
 /**
  * @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());
 }