Measure/Power.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Measure  
Version
$Id: Power.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Measure_Power

Package: Zend\Measure\Zend\Measure\Power
Class for handling power conversions
Parent(s)
\Zend_Measure_Abstract
Category
Zend  
Copyright
Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Constants

>VConstant  STANDARD = 'WATT'
>VConstant  ATTOWATT = 'ATTOWATT'
>VConstant  BTU_PER_HOUR = 'BTU_PER_HOUR'
>VConstant  BTU_PER_MINUTE = 'BTU_PER_MINUTE'
>VConstant  BTU_PER_SECOND = 'BTU_PER_SECOND'
>VConstant  CALORIE_PER_HOUR = 'CALORIE_PER_HOUR'
>VConstant  CALORIE_PER_MINUTE = 'CALORIE_PER_MINUTE'
>VConstant  CALORIE_PER_SECOND = 'CALORIE_PER_SECOND'
>VConstant  CENTIWATT = 'CENTIWATT'
>VConstant  CHEVAL_VAPEUR = 'CHEVAL_VAPEUR'
>VConstant  CLUSEC = 'CLUSEC'
>VConstant  DECIWATT = 'DECIWATT'
>VConstant  DEKAWATT = 'DEKAWATT'
>VConstant  DYNE_CENTIMETER_PER_HOUR = 'DYNE_CENTIMETER_PER_HOUR'
>VConstant  DYNE_CENTIMETER_PER_MINUTE = 'DYNE_CENTIMETER_PER_MINUTE'
>VConstant  DYNE_CENTIMETER_PER_SECOND = 'DYNE_CENTIMETER_PER_SECOND'
>VConstant  ERG_PER_HOUR = 'ERG_PER_HOUR'
>VConstant  ERG_PER_MINUTE = 'ERG_PER_MINUTE'
>VConstant  ERG_PER_SECOND = 'ERG_PER_SECOND'
>VConstant  EXAWATT = 'EXAWATT'
>VConstant  FEMTOWATT = 'FEMTOWATT'
>VConstant  FOOT_POUND_FORCE_PER_HOUR = 'FOOT_POUND_FORCE_PER_HOUR'
>VConstant  FOOT_POUND_FORCE_PER_MINUTE = 'FOOT_POUND_FORCE_PER_MINUTE'
>VConstant  FOOT_POUND_FORCE_PER_SECOND = 'FOOT_POUND_FORCE_PER_SECOND'
>VConstant  FOOT_POUNDAL_PER_HOUR = 'FOOT_POUNDAL_PER_HOUR'
>VConstant  FOOT_POUNDAL_PER_MINUTE = 'FOOT_POUNDAL_PER_MINUTE'
>VConstant  FOOT_POUNDAL_PER_SECOND = 'FOOT_POUNDAL_PER_SECOND'
>VConstant  GIGAWATT = 'GIGAWATT'
>VConstant  GRAM_FORCE_CENTIMETER_PER_HOUR = 'GRAM_FORCE_CENTIMETER_PER_HOUR'
>VConstant  GRAM_FORCE_CENTIMETER_PER_MINUTE = 'GRAM_FORCE_CENTIMETER_PER_MINUTE'
>VConstant  GRAM_FORCE_CENTIMETER_PER_SECOND = 'GRAM_FORCE_CENTIMETER_PER_SECOND'
>VConstant  HECTOWATT = 'HECTOWATT'
>VConstant  HORSEPOWER_INTERNATIONAL = 'HORSEPOWER_INTERNATIONAL'
>VConstant  HORSEPOWER_ELECTRIC = 'HORSEPOWER_ELECTRIC'
>VConstant  HORSEPOWER = 'HORSEPOWER'
>VConstant  HORSEPOWER_WATER = 'HORSEPOWER_WATER'
>VConstant  INCH_OUNCE_FORCE_REVOLUTION_PER_MINUTE = 'INCH_OUNCH_FORCE_REVOLUTION_PER_MINUTE'
>VConstant  JOULE_PER_HOUR = 'JOULE_PER_HOUR'
>VConstant  JOULE_PER_MINUTE = 'JOULE_PER_MINUTE'
>VConstant  JOULE_PER_SECOND = 'JOULE_PER_SECOND'
>VConstant  KILOCALORIE_PER_HOUR = 'KILOCALORIE_PER_HOUR'
>VConstant  KILOCALORIE_PER_MINUTE = 'KILOCALORIE_PER_MINUTE'
>VConstant  KILOCALORIE_PER_SECOND = 'KILOCALORIE_PER_SECOND'
>VConstant  KILOGRAM_FORCE_METER_PER_HOUR = 'KILOGRAM_FORCE_METER_PER_HOUR'
>VConstant  KILOGRAM_FORCE_METER_PER_MINUTE = 'KILOGRAM_FORCE_METER_PER_MINUTE'
>VConstant  KILOGRAM_FORCE_METER_PER_SECOND = 'KILOGRAM_FORCE_METER_PER_SECOND'
>VConstant  KILOPOND_METER_PER_HOUR = 'KILOPOND_METER_PER_HOUR'
>VConstant  KILOPOND_METER_PER_MINUTE = 'KILOPOND_METER_PER_MINUTE'
>VConstant  KILOPOND_METER_PER_SECOND = 'KILOPOND_METER_PER_SECOND'
>VConstant  KILOWATT = 'KILOWATT'
>VConstant  MEGAWATT = 'MEGAWATT'
>VConstant  MICROWATT = 'MICROWATT'
>VConstant  MILLION_BTU_PER_HOUR = 'MILLION_BTU_PER_HOUR'
>VConstant  MILLIWATT = 'MILLIWATT'
>VConstant  NANOWATT = 'NANOWATT'
>VConstant  NEWTON_METER_PER_HOUR = 'NEWTON_METER_PER_HOUR'
>VConstant  NEWTON_METER_PER_MINUTE = 'NEWTON_METER_PER_MINUTE'
>VConstant  NEWTON_METER_PER_SECOND = 'NEWTON_METER_PER_SECOND'
>VConstant  PETAWATT = 'PETAWATT'
>VConstant  PFERDESTAERKE = 'PFERDESTAERKE'
>VConstant  PICOWATT = 'PICOWATT'
>VConstant  PONCELET = 'PONCELET'
>VConstant  POUND_SQUARE_FOOR_PER_CUBIC_SECOND = 'POUND_SQUARE_FOOT_PER_CUBIC_SECOND'
>VConstant  TERAWATT = 'TERAWATT'
>VConstant  TON_OF_REFRIGERATION = 'TON_OF_REFRIGERATION'
>VConstant  WATT = 'WATT'
>VConstant  YOCTOWATT = 'YOCTOWATT'
>VConstant  YOTTAWATT = 'YOTTAWATT'
>VConstant  ZEPTOWATT = 'ZEPTOWATT'
>VConstant  ZETTAWATT = 'ZETTAWATT'

Properties

>VPropertyprotectedstring $_locale = null
inherited
Locale identifier
Inherited from: \Zend_Measure_Abstract::$$_locale
Default valuenullDetails
Type
string
Inherited_from
\Zend_Measure_Abstract::$$_locale  
>VPropertyprotectedstring $_type
inherited
Original type for this unit
Inherited from: \Zend_Measure_Abstract::$$_type
Details
Type
string
Inherited_from
\Zend_Measure_Abstract::$$_type  
>VPropertyprotectedarray $_units = array('ATTOWATT' => array('1.0e-18', 'aW'), 'BTU_PER_HOUR' => array('0.29307197', 'BTU/h'), 'BTU_PER_MINUTE' => array('17.5843182', 'BTU/m'), 'BTU_PER_SECOND' => array('1055.059092', 'BTU/s'), 'CALORIE_PER_HOUR' => array(array('' => '11630', '*' => '1.0e-7'), 'cal/h'), 'CALORIE_PER_MINUTE' => array(array('' => '697800', '*' => '1.0e-7'), 'cal/m'), 'CALORIE_PER_SECOND' => array(array('' => '41868000', '*' => '1.0e-7'), 'cal/s'), 'CENTIWATT' => array('0.01', 'cW'), 'CHEVAL_VAPEUR' => array('735.49875', 'cv'), 'CLUSEC' => array('0.0000013332237', 'clusec'), 'DECIWATT' => array('0.1', 'dW'), 'DEKAWATT' => array('10', 'daW'), 'DYNE_CENTIMETER_PER_HOUR' => array(array('' => '1.0e-7', '/' => '3600'), 'dyn cm/h'), 'DYNE_CENTIMETER_PER_MINUTE' => array(array('' => '1.0e-7', '/' => '60'), 'dyn cm/m'), 'DYNE_CENTIMETER_PER_SECOND' => array('1.0e-7', 'dyn cm/s'), 'ERG_PER_HOUR' => array(array('' => '1.0e-7', '/' => '3600'), 'erg/h'), 'ERG_PER_MINUTE' => array(array('' => '1.0e-7', '/' => '60'), 'erg/m'), 'ERG_PER_SECOND' => array('1.0e-7', 'erg/s'), 'EXAWATT' => array('1.0e+18', 'EW'), 'FEMTOWATT' => array('1.0e-15', 'fW'), 'FOOT_POUND_FORCE_PER_HOUR' => array(array('' => '1.3558179', '/' => '3600'), 'ft lb/h'), 'FOOT_POUND_FORCE_PER_MINUTE' => array(array('' => '1.3558179', '/' => '60'), 'ft lb/m'), 'FOOT_POUND_FORCE_PER_SECOND' => array('1.3558179', 'ft lb/s'), 'FOOT_POUNDAL_PER_HOUR' => array(array('' => '0.04214011', '/' => '3600'), 'ft pdl/h'), 'FOOT_POUNDAL_PER_MINUTE' => array(array('' => '0.04214011', '/' => '60'), 'ft pdl/m'), 'FOOT_POUNDAL_PER_SECOND' => array('0.04214011', 'ft pdl/s'), 'GIGAWATT' => array('1.0e+9', 'GW'), 'GRAM_FORCE_CENTIMETER_PER_HOUR' => array(array('' => '0.0000980665', '/' => '3600'), 'gf cm/h'), 'GRAM_FORCE_CENTIMETER_PER_MINUTE' => array(array('' => '0.0000980665', '/' => '60'), 'gf cm/m'), 'GRAM_FORCE_CENTIMETER_PER_SECOND' => array('0.0000980665', 'gf cm/s'), 'HECTOWATT' => array('100', 'hW'), 'HORSEPOWER_INTERNATIONAL' => array('745.69987', 'hp'), 'HORSEPOWER_ELECTRIC' => array('746', 'hp'), 'HORSEPOWER' => array('735.49875', 'hp'), 'HORSEPOWER_WATER' => array('746.043', 'hp'), 'INCH_OUNCH_FORCE_REVOLUTION_PER_MINUTE' => array('0.00073948398', 'in ocf/m'), 'JOULE_PER_HOUR' => array(array('' => '1', '/' => '3600'), 'J/h'), 'JOULE_PER_MINUTE' => array(array('' => '1', '/' => '60'), 'J/m'), 'JOULE_PER_SECOND' => array('1', 'J/s'), 'KILOCALORIE_PER_HOUR' => array('1.163', 'kcal/h'), 'KILOCALORIE_PER_MINUTE' => array('69.78', 'kcal/m'), 'KILOCALORIE_PER_SECOND' => array('4186.8', 'kcal/s'), 'KILOGRAM_FORCE_METER_PER_HOUR' => array(array('' => '9.80665', '/' => '3600'), 'kgf m/h'), 'KILOGRAM_FORCE_METER_PER_MINUTE' => array(array('' => '9.80665', '/' => '60'), 'kfg m/m'), 'KILOGRAM_FORCE_METER_PER_SECOND' => array('9.80665', 'kfg m/s'), 'KILOPOND_METER_PER_HOUR' => array(array('' => '9.80665', '/' => '3600'), 'kp/h'), 'KILOPOND_METER_PER_MINUTE' => array(array('' => '9.80665', '/' => '60'), 'kp/m'), 'KILOPOND_METER_PER_SECOND' => array('9.80665', 'kp/s'), 'KILOWATT' => array('1000', 'kW'), 'MEGAWATT' => array('1000000', 'MW'), 'MICROWATT' => array('0.000001', 'µW'), 'MILLION_BTU_PER_HOUR' => array('293071.07', 'mio BTU/h'), 'MILLIWATT' => array('0.001', 'mM'), 'NANOWATT' => array('1.0e-9', 'nN'), 'NEWTON_METER_PER_HOUR' => array(array('' => '1', '/' => '3600'), 'Nm/h'), 'NEWTON_METER_PER_MINUTE' => array(array('' => '1', '/' => '60'), 'Nm/m'), 'NEWTON_METER_PER_SECOND' => array('1', 'Nm/s'), 'PETAWATT' => array('1.0e+15', 'PW'), 'PFERDESTAERKE' => array('735.49875', 'PS'), 'PICOWATT' => array('1.0e-12', 'pW'), 'PONCELET' => array('980.665', 'p'), 'POUND_SQUARE_FOOT_PER_CUBIC_SECOND' => array('0.04214011', 'lb ft²/s³'), 'TERAWATT' => array('1.0e+12', 'TW'), 'TON_OF_REFRIGERATION' => array('3516.85284', 'RT'), 'WATT' => array('1', 'W'), 'YOCTOWATT' => array('1.0e-24', 'yW'), 'YOTTAWATT' => array('1.0e+24', 'YW'), 'ZEPTOWATT' => array('1.0e-21', 'zW'), 'ZETTAWATT' => array('1.0e+21', 'ZW'), 'STANDARD' => 'WATT')
Calculations for all power units
Default valuearray('ATTOWATT' => array('1.0e-18', 'aW'), 'BTU_PER_HOUR' => array('0.29307197', 'BTU/h'), 'BTU_PER_MINUTE' => array('17.5843182', 'BTU/m'), 'BTU_PER_SECOND' => array('1055.059092', 'BTU/s'), 'CALORIE_PER_HOUR' => array(array('' => '11630', '*' => '1.0e-7'), 'cal/h'), 'CALORIE_PER_MINUTE' => array(array('' => '697800', '*' => '1.0e-7'), 'cal/m'), 'CALORIE_PER_SECOND' => array(array('' => '41868000', '*' => '1.0e-7'), 'cal/s'), 'CENTIWATT' => array('0.01', 'cW'), 'CHEVAL_VAPEUR' => array('735.49875', 'cv'), 'CLUSEC' => array('0.0000013332237', 'clusec'), 'DECIWATT' => array('0.1', 'dW'), 'DEKAWATT' => array('10', 'daW'), 'DYNE_CENTIMETER_PER_HOUR' => array(array('' => '1.0e-7', '/' => '3600'), 'dyn cm/h'), 'DYNE_CENTIMETER_PER_MINUTE' => array(array('' => '1.0e-7', '/' => '60'), 'dyn cm/m'), 'DYNE_CENTIMETER_PER_SECOND' => array('1.0e-7', 'dyn cm/s'), 'ERG_PER_HOUR' => array(array('' => '1.0e-7', '/' => '3600'), 'erg/h'), 'ERG_PER_MINUTE' => array(array('' => '1.0e-7', '/' => '60'), 'erg/m'), 'ERG_PER_SECOND' => array('1.0e-7', 'erg/s'), 'EXAWATT' => array('1.0e+18', 'EW'), 'FEMTOWATT' => array('1.0e-15', 'fW'), 'FOOT_POUND_FORCE_PER_HOUR' => array(array('' => '1.3558179', '/' => '3600'), 'ft lb/h'), 'FOOT_POUND_FORCE_PER_MINUTE' => array(array('' => '1.3558179', '/' => '60'), 'ft lb/m'), 'FOOT_POUND_FORCE_PER_SECOND' => array('1.3558179', 'ft lb/s'), 'FOOT_POUNDAL_PER_HOUR' => array(array('' => '0.04214011', '/' => '3600'), 'ft pdl/h'), 'FOOT_POUNDAL_PER_MINUTE' => array(array('' => '0.04214011', '/' => '60'), 'ft pdl/m'), 'FOOT_POUNDAL_PER_SECOND' => array('0.04214011', 'ft pdl/s'), 'GIGAWATT' => array('1.0e+9', 'GW'), 'GRAM_FORCE_CENTIMETER_PER_HOUR' => array(array('' => '0.0000980665', '/' => '3600'), 'gf cm/h'), 'GRAM_FORCE_CENTIMETER_PER_MINUTE' => array(array('' => '0.0000980665', '/' => '60'), 'gf cm/m'), 'GRAM_FORCE_CENTIMETER_PER_SECOND' => array('0.0000980665', 'gf cm/s'), 'HECTOWATT' => array('100', 'hW'), 'HORSEPOWER_INTERNATIONAL' => array('745.69987', 'hp'), 'HORSEPOWER_ELECTRIC' => array('746', 'hp'), 'HORSEPOWER' => array('735.49875', 'hp'), 'HORSEPOWER_WATER' => array('746.043', 'hp'), 'INCH_OUNCH_FORCE_REVOLUTION_PER_MINUTE' => array('0.00073948398', 'in ocf/m'), 'JOULE_PER_HOUR' => array(array('' => '1', '/' => '3600'), 'J/h'), 'JOULE_PER_MINUTE' => array(array('' => '1', '/' => '60'), 'J/m'), 'JOULE_PER_SECOND' => array('1', 'J/s'), 'KILOCALORIE_PER_HOUR' => array('1.163', 'kcal/h'), 'KILOCALORIE_PER_MINUTE' => array('69.78', 'kcal/m'), 'KILOCALORIE_PER_SECOND' => array('4186.8', 'kcal/s'), 'KILOGRAM_FORCE_METER_PER_HOUR' => array(array('' => '9.80665', '/' => '3600'), 'kgf m/h'), 'KILOGRAM_FORCE_METER_PER_MINUTE' => array(array('' => '9.80665', '/' => '60'), 'kfg m/m'), 'KILOGRAM_FORCE_METER_PER_SECOND' => array('9.80665', 'kfg m/s'), 'KILOPOND_METER_PER_HOUR' => array(array('' => '9.80665', '/' => '3600'), 'kp/h'), 'KILOPOND_METER_PER_MINUTE' => array(array('' => '9.80665', '/' => '60'), 'kp/m'), 'KILOPOND_METER_PER_SECOND' => array('9.80665', 'kp/s'), 'KILOWATT' => array('1000', 'kW'), 'MEGAWATT' => array('1000000', 'MW'), 'MICROWATT' => array('0.000001', 'µW'), 'MILLION_BTU_PER_HOUR' => array('293071.07', 'mio BTU/h'), 'MILLIWATT' => array('0.001', 'mM'), 'NANOWATT' => array('1.0e-9', 'nN'), 'NEWTON_METER_PER_HOUR' => array(array('' => '1', '/' => '3600'), 'Nm/h'), 'NEWTON_METER_PER_MINUTE' => array(array('' => '1', '/' => '60'), 'Nm/m'), 'NEWTON_METER_PER_SECOND' => array('1', 'Nm/s'), 'PETAWATT' => array('1.0e+15', 'PW'), 'PFERDESTAERKE' => array('735.49875', 'PS'), 'PICOWATT' => array('1.0e-12', 'pW'), 'PONCELET' => array('980.665', 'p'), 'POUND_SQUARE_FOOT_PER_CUBIC_SECOND' => array('0.04214011', 'lb ft²/s³'), 'TERAWATT' => array('1.0e+12', 'TW'), 'TON_OF_REFRIGERATION' => array('3516.85284', 'RT'), 'WATT' => array('1', 'W'), 'YOCTOWATT' => array('1.0e-24', 'yW'), 'YOTTAWATT' => array('1.0e+24', 'YW'), 'ZEPTOWATT' => array('1.0e-21', 'zW'), 'ZETTAWATT' => array('1.0e+21', 'ZW'), 'STANDARD' => 'WATT')Details
Type
array
>VPropertyprotectedstring $_value
inherited
Plain value in standard unit
Inherited from: \Zend_Measure_Abstract::$$_value
Details
Type
string
Inherited_from
\Zend_Measure_Abstract::$$_value  

Methods

methodpublic__construct(mixed $value, int $type = null, \Zend_Locale $locale = null) : void
inherited

Zend_Measure_Abstract is an abstract class for the different measurement types

Inherited from: \Zend_Measure_Abstract::__construct()
Parameters
NameTypeDescription
$valuemixed

Value as string, integer, real or float

$typeint

OPTIONAL a measure type f.e. Zend_Measure_Length::METER

$locale\Zend_Locale

OPTIONAL a Zend_Locale Type

Throws
ExceptionDescription
\Zend_Measure_Exception
methodpublic__toString() : string
inherited

Returns a string representation

Inherited from: \Zend_Measure_Abstract::__toString()
Returns
TypeDescription
string
methodpublicadd(\Zend_Measure_Abstract $object) : \Zend_Measure_Abstract
inherited

Adds an unit to another one

Inherited from: \Zend_Measure_Abstract::add()
Parameters
NameTypeDescription
$object\Zend_Measure_Abstract

object of same unit type

Returns
TypeDescription
\Zend_Measure_Abstract
methodpubliccompare(\Zend_Measure_Abstract $object) : boolean
inherited

Compares two units

Inherited from: \Zend_Measure_Abstract::compare()
Parameters
NameTypeDescription
$object\Zend_Measure_Abstract

object of same unit type

Returns
TypeDescription
boolean
methodpublicconvertTo(string $type, integer $round = 2, string | \Zend_Locale $locale = null) : string
inherited

Alias function for setType returning the converted unit

Inherited from: \Zend_Measure_Abstract::convertTo()
Parameters
NameTypeDescription
$typestring

Constant Type

$roundinteger

(Optional) Rounds the value to a given precision

$localestring | \Zend_Locale

(Optional) Locale to set for the number

Returns
TypeDescription
string
methodpublicequals(\Zend_Measure_Abstract $object) : boolean
inherited

Compare if the value and type is equal

Inherited from: \Zend_Measure_Abstract::equals()
Parameters
NameTypeDescription
$object\Zend_Measure_Abstract

object to compare

Returns
TypeDescription
boolean
methodpublicgetConversionList() : array
inherited

Returns the conversion list

Inherited from: \Zend_Measure_Abstract::getConversionList()
Returns
TypeDescription
array
methodpublicgetLocale() : string
inherited

Returns the actual set locale

Inherited from: \Zend_Measure_Abstract::getLocale()
Returns
TypeDescription
string
methodpublicgetType() : \type
inherited

Returns the original type

Inherited from: \Zend_Measure_Abstract::getType()
Returns
TypeDescription
\type
methodpublicgetValue(integer $round = -1, string | \Zend_Locale $locale = null) : integer | string
inherited

Returns the internal value

Inherited from: \Zend_Measure_Abstract::getValue()
Parameters
NameTypeDescription
$roundinteger

(Optional) Rounds the value to an given precision, Default is -1 which returns without rounding

$localestring | \Zend_Locale

(Optional) Locale for number representation

Returns
TypeDescription
integer | string
methodpublicsetLocale(string | \Zend_Locale $locale = null, boolean $check = false) : \Zend_Measure_Abstract
inherited

Sets a new locale for the value representation

Inherited from: \Zend_Measure_Abstract::setLocale()
Parameters
NameTypeDescription
$localestring | \Zend_Locale

(Optional) New locale to set

$checkboolean

False, check but don't set; True, set the new locale

Returns
TypeDescription
\Zend_Measure_Abstract
methodpublicsetType(string $type) : \Zend_Measure_Abstract
inherited

Set a new type, and convert the value

Inherited from: \Zend_Measure_Abstract::setType()
Parameters
NameTypeDescription
$typestring

New type to set

Returns
TypeDescription
\Zend_Measure_Abstract
Throws
ExceptionDescription
\Zend_Measure_Exception
methodpublicsetValue(integer | string $value, string $type = null, string | \Zend_Locale $locale = null) : \Zend_Measure_Abstract
inherited

Set a new value

Inherited from: \Zend_Measure_Abstract::setValue()
Parameters
NameTypeDescription
$valueinteger | string

Value as string, integer, real or float

$typestring

OPTIONAL A measure type f.e. Zend_Measure_Length::METER

$localestring | \Zend_Locale

OPTIONAL Locale for parsing numbers

Returns
TypeDescription
\Zend_Measure_Abstract
Throws
ExceptionDescription
\Zend_Measure_Exception
methodpublicsub(\Zend_Measure_Abstract $object) : \Zend_Measure_Abstract
inherited

Substracts an unit from another one

Inherited from: \Zend_Measure_Abstract::sub()
Parameters
NameTypeDescription
$object\Zend_Measure_Abstract

object of same unit type

Returns
TypeDescription
\Zend_Measure_Abstract
methodpublictoString(integer $round = -1, string | \Zend_Locale $locale = null) : string
inherited

Returns a string representation

Inherited from: \Zend_Measure_Abstract::toString()
Parameters
NameTypeDescription
$roundinteger

(Optional) Runds the value to an given exception

$localestring | \Zend_Locale

(Optional) Locale to set for the number

Returns
TypeDescription
string
Documentation was generated by phpDocumentor 2.0.0a12.