Exemplo n.º 1
0
 /**
  * Populates the specified user band with values from the specified dto.
  *
  * @param \MetaPlayer\Model\UserBand $userBand
  * @param BandDto $dto
  */
 public function populateUserBandWithDto(UserBand $userBand, BandDto $dto)
 {
     $userBand->setName($this->trimText($dto->name));
     $userBand->setFoundDate(ViewHelper::parseDate($dto->foundDate));
     $userBand->setEndDate(ViewHelper::parseDate($dto->endDate));
     $userBand->setSource($dto->source);
 }