From 7c1a88addfd5fc1baa6712eda396ddd94137fbe5 Mon Sep 17 00:00:00 2001 From: jordanbrauer Date: Tue, 10 Oct 2017 11:20:18 -0500 Subject: [PATCH] Feat: add support for celsius --- .../Unit/Temperature/Celsius.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/UnitConverter/Unit/Temperature/Celsius.php diff --git a/src/UnitConverter/Unit/Temperature/Celsius.php b/src/UnitConverter/Unit/Temperature/Celsius.php new file mode 100644 index 00000000..78c88a8c --- /dev/null +++ b/src/UnitConverter/Unit/Temperature/Celsius.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\Temperature; + +use UnitConverter\Measure; +use UnitConverter\Unit\{ AbstractUnit, UnitInterface }; + +/** + * Celsius unit data class. + * + * @version 1.0.0 + * @since 1.0.0 + * @author Jordan Brauer + */ +class Celsius extends TemperatureUnit +{ + protected $name = "celsius"; + + protected $symbol = "c"; + + protected $units = -272.15; +}