src/Domain/Value/DateTime/Date.php
public static function create(int $year, int $month, int $day): Date
    {
        return new static($year, $month, $day);
    }
public static function create(int $year, int $month, int $day): Date
    {
        return new static($year, $month, $day);
    }
public static function create ( int $ year , int $ month , int $ day ) : Date { return new static ( $ year , $ month , $ day ) ; }
Creates instance from date values

@param int $year  The year
@param int $month The month
@param int $day   The day

@return Date

@throws DomainException When the date is not valid
Creates instance from date values