Inspired from issue #35 (2.+ 3.) this PR proposes changes to the interface of PhysicalQuantity
The interface PhysicalQuantityInterface is renamed into PhysicalQuantity, which emphasizes more on being a type rather than being an interface (e.g. when being used in type hints).
Methods PhysicalQuantity::toUnit() and PhysicalQuantity::toNativeUnit() now return new PhysicalQuantity instances.
This PR also adds the missing scalar getter methods getValue() and getUnit(), which return the original value and the unit when the instance was created. Therefor the static method AbstractPhysicalQuantity::getUnit() has to be renamed to getUnitByNameOrAlias.
Finally, removes the non-existant submodule "vagrant" https://github.com/triplepoint/quick-vagrant.git.
Inspired from issue #35 (2.+ 3.) this PR proposes changes to the interface of PhysicalQuantity
The interface
PhysicalQuantityInterface
is renamed intoPhysicalQuantity
, which emphasizes more on being a type rather than being an interface (e.g. when being used in type hints).Methods
PhysicalQuantity::toUnit()
andPhysicalQuantity::toNativeUnit()
now return new PhysicalQuantity instances.This PR also adds the missing scalar getter methods
getValue()
andgetUnit()
, which return the original value and the unit when the instance was created. Therefor the static methodAbstractPhysicalQuantity::getUnit()
has to be renamed togetUnitByNameOrAlias
.Finally, removes the non-existant submodule "vagrant"
https://github.com/triplepoint/quick-vagrant.git
.