src/Unit/Time/TimeUnit.php
<?php
declare(strict_types = 1);
/**
* This file is part of the jordanbrauer/unit-converter PHP package.
*
* @copyright 2018 Jordan Brauer <18744334+jordanbrauer@users.noreply.github.com>
* @license MIT
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace UnitConverter\Unit\Time;
use UnitConverter\Measure;
use UnitConverter\Unit\AbstractUnit;
/**
* Time base class, new time classes should be extending this class
* implenting their name, symbol and units
* Only override $unitOf and $base properties when necessary
*
* @version 1.0.0
* @since 0.3.9
* @author Teun Willems
*/
abstract class TimeUnit extends AbstractUnit
{
protected $base = Second::class;
protected $unitOf = Measure::TIME;
}