From 42630ac5ba816b09b9f757b93c850e1395381bc7 Mon Sep 17 00:00:00 2001 From: jordanbrauer Date: Mon, 9 Oct 2017 23:04:20 -0500 Subject: [PATCH] Feat: add support for radian units --- src/UnitConverter/Unit/PlaneAngle/Radian.php | 34 ++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/UnitConverter/Unit/PlaneAngle/Radian.php diff --git a/src/UnitConverter/Unit/PlaneAngle/Radian.php b/src/UnitConverter/Unit/PlaneAngle/Radian.php new file mode 100644 index 00000000..71680cb8 --- /dev/null +++ b/src/UnitConverter/Unit/PlaneAngle/Radian.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 }; + +/** + * Radian unit data class. + * + * @version 1.0.0 + * @since 1.0.0 + * @author Jordan Brauer + */ +class Radian extends PlaneAngleUnit +{ + protected $name = "radian"; + + protected $symbol = "rad"; + + protected $units = 57.2958; +}