PHP Class Pimcore\Model\Object\Data\QuantityValue

Show file Open project: pimcore/pimcore

Public Properties

Property Type Description
$unit Pimcore\Model\Object\QuantityValue\Unit
$unitId integer
$value double | string | string

Public Methods

Method Description
__construct ( $value = null, $unitId = null )
__toString ( ) : string
getUnit ( )
getUnitId ( ) : integer
getValue ( ) : double
setUnitId ( $unitId ) : void
setValue ( $value ) : void

Method Details

__construct() public method

public __construct ( $value = null, $unitId = null )

__toString() public method

public __toString ( ) : string
return string

getUnit() public method

public getUnit ( )

getUnitId() public method

public getUnitId ( ) : integer
return integer

getValue() public method

public getValue ( ) : double
return double

setUnitId() public method

public setUnitId ( $unitId ) : void
$unitId
return void

setValue() public method

public setValue ( $value ) : void
$value
return void

Property Details

$unit public property

public Unit,Pimcore\Model\Object\QuantityValue $unit
return Pimcore\Model\Object\QuantityValue\Unit

$unitId public property

public int $unitId
return integer

$value public property

| string
public double|string $value
return double | string