for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace JD\FormBundle\Form\Model;
use DateTime;
final class DateBetween
{
/**
* @var DateTime|null
*/
private $from;
private $to;
* @param DateTime|null $from
* @param DateTime|null $to
public function __construct(DateTime $from = null, DateTime $to = null)
$this->from = $from;
$this->to = $to;
}
* @return DateTime|null
public function getFrom()
return $this->from;
public function setFrom(DateTime $from = null)
public function getTo()
return $this->to;
public function setTo(DateTime $to = null)