From b31760fd8842e2aed90ededd7569cb4955b2cd22 Mon Sep 17 00:00:00 2001 From: Remco Tolsma Date: Fri, 8 Mar 2019 14:49:12 +0100 Subject: [PATCH] Improved documentation. --- src/Currency.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Currency.php b/src/Currency.php index d4b7cba..21364c4 100644 --- a/src/Currency.php +++ b/src/Currency.php @@ -21,28 +21,28 @@ class Currency { /** * Alphabetic code. * - * @var string + * @var string|null */ private $alphabetic_code; /** * Numeric code. * - * @var string + * @var string|null */ private $numeric_code; /** * Symbol. * - * @var string + * @var string|null */ private $symbol; /** * Name. * - * @var string + * @var string|null */ private $name; @@ -63,7 +63,7 @@ public function __construct() { /** * Get alphabetic code. * - * @return null|string + * @return string|null */ public function get_alphabetic_code() { return $this->alphabetic_code; @@ -72,7 +72,7 @@ public function get_alphabetic_code() { /** * Set alphabetic code. * - * @param string $alphabetic_code Alphabetic code. + * @param string|null $alphabetic_code Alphabetic code. */ public function set_alphabetic_code( $alphabetic_code ) { $this->alphabetic_code = $alphabetic_code; @@ -81,7 +81,7 @@ public function set_alphabetic_code( $alphabetic_code ) { /** * Get numeric code. * - * @return null|string + * @return string|null */ public function get_numeric_code() { return $this->numeric_code; @@ -90,7 +90,7 @@ public function get_numeric_code() { /** * Set numeric code. * - * @param string $numeric_code Numeric code. + * @param string|null $numeric_code Numeric code. */ public function set_numeric_code( $numeric_code ) { $this->numeric_code = $numeric_code; @@ -99,7 +99,7 @@ public function set_numeric_code( $numeric_code ) { /** * Get symbol. * - * @return null|string + * @return string|null */ public function get_symbol() { return $this->symbol; @@ -108,7 +108,7 @@ public function get_symbol() { /** * Set symbol. * - * @param string $symbol Symbol. + * @param string|null $symbol Symbol. */ public function set_symbol( $symbol ) { $this->symbol = $symbol; @@ -146,7 +146,7 @@ public static function get_instance( $alphabetic_code ) { /** * Get name. * - * @return null|string + * @return string|null */ public function get_name() { return $this->name; @@ -155,7 +155,7 @@ public function get_name() { /** * Set name. * - * @param string $name Currency name. + * @param string|null $name Currency name. */ public function set_name( $name ) { $this->name = $name;