From 7855114aaa34b99d4fd96c89b8e49fb05d765109 Mon Sep 17 00:00:00 2001 From: jordanbrauer Date: Tue, 10 Oct 2017 21:10:33 -0500 Subject: [PATCH] Feat: add support for cubic metre units --- src/UnitConverter/Unit/Volume/CubicMetre.php | 39 ++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/UnitConverter/Unit/Volume/CubicMetre.php diff --git a/src/UnitConverter/Unit/Volume/CubicMetre.php b/src/UnitConverter/Unit/Volume/CubicMetre.php new file mode 100644 index 00000000..8a9ea2c3 --- /dev/null +++ b/src/UnitConverter/Unit/Volume/CubicMetre.php @@ -0,0 +1,39 @@ + + * @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\Volume; + +use UnitConverter\Measure; +use UnitConverter\Unit\{ AbstractUnit, UnitInterface }; + +/** + * Cubic metre unit data class. + * + * @version 1.0.0 + * @since 1.0.0 + * @author Jordan Brauer + */ +class CubicMetre extends VolumeUnit +{ + protected function configure () : void + { + $this + ->setName("cubic metre") + + ->setSymbol("m3") + + ->setUnits(1000) + ; + } +}