src/Converter/ToJdnConverter.php
public function set(int $day, int $month, int $year)
    {
        $validator = new DateValidator($day, $month, $year);

        if (!$validator->isValid()) {
            throw new InvalidDateException();
        }

        $this->day = $day;
        $this->month = $month;
        $this->year = $year;

        $this->jdn = (int) static::process($day, $month, $year);

        return $this;
    }
public function set(int $day, int $month, int $year)
    {
        $validator = new DateValidator($day, $month, $year);

        if (!$validator->isValid()) {
            throw new InvalidDateException();
        }

        $this->day = $day;
        $this->month = $month;
        $this->year = $year;

        $this->jdn = (int) static::process($day, $month, $year);

        return $this;
    }
public function set ( int $ day , int $ month , int $ year ) { $ validator = new DateValidator ( $ day , $ month , $ year ) ; if ( ! $ validator -> isValid ( ) ) { throw new InvalidDateException ( ) ; } $ this -> day = $ day ; $ this -> month = $ month ; $ this -> year = $ year ; $ this -> jdn = ( int ) static :: process ( $ day , $ month , $ year ) ; return $ this ; }
Set the date for processing.

@param $day
@param $month
@param $year

@throws \Andegna\Exception\InvalidDateException

@return $this
Set the date for processing .