for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Amadeus
*
* Copyright 2015 Amadeus Benelux NV
*/
namespace Amadeus\Client\Struct\SalesReports\DisplayQueryReport;
* DateTime
* @package Amadeus\Client\Struct\SalesReports\DisplayQueryReport
* @author Dieter Devlieghere <[email protected]>
class DateTime
{
* @var string
public $year;
public $month;
public $day;
* DateTime constructor.
* @param \DateTime|null $date
public function __construct($date)
if ($date instanceof \DateTime) {
$this->year = $date->format('Y');
$this->month = $date->format('m');
$this->day = $date->format('d');
}