for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AppBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use JMS\Serializer\Annotation as JMS;
/**
* @package AppBundle\Entity
*
* @ORM\Entity(repositoryClass="AppBundle\Entity\TipRepository")
* @JMS\ExclusionPolicy("all")
*/
class Tip extends Base
{
* @ORM\Id()
* @ORM\Column(type="integer")
* @ORM\GeneratedValue()
private $id;
* @var int
* @JMS\Expose
* @Assert\NotBlank()
private $day;
private $month;
* @var string
* @ORM\Column(type="string")
private $description;
* @return mixed
public function getId()
return $this->id;
}
* @return int
public function getDay()
return $this->day;
* @param int $day
public function setDay($day)
$this->day = $day;
public function getMonth()
return $this->month;
* @param int $month
public function setMonth($month)
$this->month = $month;
* @return string
public function getDescription()
return $this->description;
* @param string $description
public function setDescription($description)
$this->description = $description;