for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Bukashk0zzzYmlGenerator
*
* (c) Denis Golubovskiy <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Bukashk0zzz\YmlGenerator\Model\Offer;
/**
* Class OfferArtistTitle
class OfferArtistTitle extends AbstractOffer
{
* @var string
private $artist;
private $title;
* @var int
private $year;
private $media;
* @return string
public function getType()
return 'artist.title';
}
public function getArtist()
return $this->artist;
* @param string $artist
* @return OfferArtistTitle
public function setArtist($artist)
$this->artist = $artist;
return $this;
public function getTitle()
return $this->title;
* @param string $title
public function setTitle($title)
$this->title = $title;
* @return int
public function getYear()
return $this->year;
* @param int $year
public function setYear($year)
$this->year = $year;
public function getMedia()
return $this->media;
* @param string $media
public function setMedia($media)
$this->media = $media;
* @return array
protected function getOptions()
return [
'artist' => $this->getArtist(),
'title' => $this->getTitle(),
'year' => $this->getYear(),
'media' => $this->getMedia(),
];