for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace KI\PonthubBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation as JMS;
use KI\PonthubBundle\Entity\PonthubFile;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity
* @JMS\ExclusionPolicy("all")
*/
class Software extends PonthubFile
{
* Année
* @ORM\Column(name="year", type="integer", nullable=true)
* @JMS\Expose
* @Assert\Range(min = 1000, max = 2050)
protected $year;
* Studio/développeur
* @ORM\Column(name="author", type="string", nullable=true)
* @Assert\Type("string")
protected $author;
* Version
* @ORM\Column(name="version", type="string", nullable=true)
protected $version;
* Operating System
* @ORM\Column(name="os", type="string", nullable=true)
protected $os;
* Set year
*
* @param integer $year
* @return Game
public function setYear($year)
$this->year = $year;
return $this;
}
* Get year
* @return integer
public function getYear()
return $this->year;
* Set author
* @param string $author
* @return Software
public function setAuthor($author)
$this->author = $author;
* Get author
* @return string
public function getAuthor()
return $this->author;
* Set version
* @param string $version
public function setVersion($version)
$this->version = $version;
* Get version
public function getVersion()
return $this->version;
* Set os
* @param string $os
public function setOs($os)
$this->os = $os;
* Get os
public function getOs()
return $this->os;