/**
* @param int $bannerId
* @param DateTimeInterface|null $date
*/
public function __construct($bannerId,
$date = null
) { if ($date === null
) { $date =
new DateTime();
} $this->
setDisplayDate($date);
$this->
setBannerId($bannerId);
} /**
* Returns the date
*
* @return DateTimeInterface
*/
public function getDisplayDate() { return $this->displayDate;
}