for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AppBundle\Entity\DTO;
use Symfony\Component\Validator\Constraints as Assert;
use AppBundle\Entity\Survey\SurveyType;
class SurveyFilter
{
/**
* @var \DateTime
* @Assert\Date()
*/
private $start;
private $end;
* @var SurveyType
* @Assert\Type("object")
* @Assert\Valid
private $type;
* Set start.
*
* @param \DateTime $date
* @return SurveyFilter
public function setStart($date)
$this->start = $date;
return $this;
}
* Get start.
* @return \DateTime
public function getStart()
return $this->start;
* Set end.
public function setEnd($date)
$this->end = $date;
* Get end.
public function getEnd()
return $this->end;
* Set type.
* @param SurveyType $type
public function setType(SurveyType $type)
$this->type = $type;
* Get type.
* @return SurveyType
public function getType()
return $this->type;