jordanbrauer/unit-converter

View on GitHub
src/Unit/Speed/SpeedUnit.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?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\Speed;

use UnitConverter\Measure;
use UnitConverter\Unit\AbstractUnit;

/**
 * Speed unit base data class. Any new speed units should
 * extend this class and implement their name, symbol and units;
 * overriding the $unitOf and $base properties only if necessary.
 *
 * @version 1.0.0
 * @since 0.0.1
 * @author Jordan Brauer <18744334+jordanbrauer@users.noreply.github.com>
 */
abstract class SpeedUnit extends AbstractUnit
{
    protected $base = MetrePerSecond::class;

    protected $unitOf = Measure::SPEED;
}