From 65eea02e8d46fb55dbc0c06a1ca7e4b57cd66363 Mon Sep 17 00:00:00 2001 From: jordanbrauer Date: Mon, 9 Oct 2017 23:03:40 -0500 Subject: [PATCH] Feat: add the base plane angle unit for all plane angle units --- .../Unit/PlaneAngle/PlaneAngleUnit.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/UnitConverter/Unit/PlaneAngle/PlaneAngleUnit.php diff --git a/src/UnitConverter/Unit/PlaneAngle/PlaneAngleUnit.php b/src/UnitConverter/Unit/PlaneAngle/PlaneAngleUnit.php new file mode 100644 index 00000000..16acb391 --- /dev/null +++ b/src/UnitConverter/Unit/PlaneAngle/PlaneAngleUnit.php @@ -0,0 +1,34 @@ + + * @license MIT + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +declare(strict_types = 1); + +namespace UnitConverter\Unit\PlaneAngle; + +use UnitConverter\Measure; +use UnitConverter\Unit\{ AbstractUnit, UnitInterface }; + +/** + * Plane Angle unit base data class. Any new plane angle 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 1.0.0 + * @author Jordan Brauer + */ +abstract class PlaneAngleUnit extends AbstractUnit +{ + protected $unitOf = Measure::PLANE_ANGLE; + + protected $base = Degree::class; +}