Skip to content

Commit

Permalink
Feat: list of default measurements via class constants
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanbrauer committed Oct 9, 2017
1 parent ed0ffe6 commit a6f6395
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions src/UnitConverter/Measure.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php

/**
* This file is part of the jordanbrauer/unit-converter PHP package.
*
* @copyright 2017 Jordan Brauer <[email protected]>
* @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;

/**
* A static class containing constants that define the available
* default types of measurement.
*
* @version 1.0.0
* @since 1.0.0
* @author Jordan Brauer <[email protected]>
*/
class Measure
{
const LENGTH = "length";

const AREA = "area";

const VOLUME = "volume";

const WEIGHT = "weight";

const SPEED = "speed";

const ROTATION = "rotation";

const TEMPERATURE = "temperature";

const PRESSURE = "pressure";

const TIME = "time";

const ENERGY = "energy";
}

0 comments on commit a6f6395

Please sign in to comment.