From 109964a6debb90c8ecd1de711979336109680f45 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 27 Jul 2016 13:51:13 +0200 Subject: [PATCH] Add temperature & angle --- Localization/Localization.php | 67 ++++++++++++++++++++++++++++++++++- 1 file changed, 66 insertions(+), 1 deletion(-) diff --git a/Localization/Localization.php b/Localization/Localization.php index 49281cae4..f6edf12cd 100644 --- a/Localization/Localization.php +++ b/Localization/Localization.php @@ -73,6 +73,23 @@ class Localization * @since 1.0.0 */ private $thousands = ','; + + /** + * Angle type. + * + * @var string + * @since 1.0.0 + */ + private $angle = AngleType::DEGREE; + + /** + * Temperature type. + * + * @var string + * @since 1.0.0 + */ + private $temperature = TemperatureType::CELSIUS; + /** * Time format. * @@ -315,5 +332,53 @@ class Localization public function setThousands(string $thousands) { $this->thousands = $thousands; - } + } + + /** + * @return string + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function getAngle() : string + { + return $this->angle; + } + + /** + * @param string $angle + * + * @return string + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function setAngle(string $angle) + { + $this->temperature = $angle; + } + + /** + * @return string + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function getTemperature() : string + { + return $this->temperature; + } + + /** + * @param string $temperature + * + * @return string + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function setTemperatur(string $temperature) + { + $this->temperature = $temperature; + } }