for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Andegna\Converter;
use Andegna\Validator\ValidIntegerValidator;
/**
* Converter abstraction.
*
* @see FromJdnConverter
* @see ToJdnConverter
*/
abstract class Converter
{
use ValidIntegerValidator;
/** @var int */
protected $day;
protected $month;
protected $year;
protected $jdn;
* Get the day.
* @return int
public function getDay(): int
return $this->day;
}
* Get the month.
public function getMonth(): int
return $this->month;
* Get the year.
public function getYear(): int
return $this->year;
* Get the JDN.
public function getJdn(): int
return $this->jdn;