From 81f65217f8afa73808dfad9ea78597c1a8c93820 Mon Sep 17 00:00:00 2001 From: Ujjwal Ojha Date: Sun, 15 Jun 2014 09:03:27 +0545 Subject: [PATCH] Created new quantity, 'ApparentPower' --- .../Quantity/ApparentPower/ApparentPower.php | 33 +++++++++++++++++++ .../Quantity/ApparentPower/Unit.php | 23 +++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 src/Crisu83/Conversion/Quantity/ApparentPower/ApparentPower.php create mode 100644 src/Crisu83/Conversion/Quantity/ApparentPower/Unit.php diff --git a/src/Crisu83/Conversion/Quantity/ApparentPower/ApparentPower.php b/src/Crisu83/Conversion/Quantity/ApparentPower/ApparentPower.php new file mode 100644 index 0000000..6d759db --- /dev/null +++ b/src/Crisu83/Conversion/Quantity/ApparentPower/ApparentPower.php @@ -0,0 +1,33 @@ + native unit) + */ + protected static $conversionMap = array( + Unit::VOLT_AMPERE => 1, + Unit::KILOVOLT_AMPERE => 1000, + ); +} diff --git a/src/Crisu83/Conversion/Quantity/ApparentPower/Unit.php b/src/Crisu83/Conversion/Quantity/ApparentPower/Unit.php new file mode 100644 index 0000000..42979f9 --- /dev/null +++ b/src/Crisu83/Conversion/Quantity/ApparentPower/Unit.php @@ -0,0 +1,23 @@ +