public function SassNumber::getUnits in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/script/literals/SassNumber.php \SassNumber::getUnits()
* Returns the units of this number. *
Return value
string the units of this number
File
- phamlp/
sass/ script/ literals/ SassNumber.php, line 430
Class
- SassNumber
- SassNumber class. Provides operations and type testing for Sass numbers. Units are of the passed value are converted the those of the class value if it has units. e.g. 2cm + 20mm = 4cm while 2 + 20mm =…
Code
public function getUnits() {
return $this
->unitString($this->numeratorUnits, $this->denominatorUnits);
}