@@ -13,7 +13,6 @@ discard block |
||
| 13 | 13 | /** |
| 14 | 14 | * Returns a new Country object given a native PHP string country code |
| 15 | 15 | * |
| 16 | - * @param string $code |
|
| 17 | 16 | * @return self |
| 18 | 17 | */ |
| 19 | 18 | public static function fromNative() |
@@ -63,7 +62,7 @@ discard block |
||
| 63 | 62 | /** |
| 64 | 63 | * Returns country name |
| 65 | 64 | * |
| 66 | - * @return String |
|
| 65 | + * @return \ValueObjects\StringLiteral\StringLiteral |
|
| 67 | 66 | */ |
| 68 | 67 | public function getName() |
| 69 | 68 | { |
@@ -26,9 +26,6 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * Returns a new Street from native PHP string name and number. |
| 28 | 28 | * |
| 29 | - * @param string $name |
|
| 30 | - * @param string $number |
|
| 31 | - * @param string $elements |
|
| 32 | 29 | * @return Street |
| 33 | 30 | * @throws \BadFunctionCallException |
| 34 | 31 | */ |
@@ -56,8 +53,8 @@ discard block |
||
| 56 | 53 | /** |
| 57 | 54 | * Returns a new Street object |
| 58 | 55 | * |
| 59 | - * @param String $name |
|
| 60 | - * @param String $number |
|
| 56 | + * @param StringLiteral $name |
|
| 57 | + * @param StringLiteral $number |
|
| 61 | 58 | */ |
| 62 | 59 | public function __construct(StringLiteral $name, StringLiteral $number, StringLiteral $elements = null, StringLiteral $format = null) |
| 63 | 60 | { |
@@ -95,7 +92,7 @@ discard block |
||
| 95 | 92 | /** |
| 96 | 93 | * Returns street name |
| 97 | 94 | * |
| 98 | - * @return String |
|
| 95 | + * @return StringLiteral |
|
| 99 | 96 | */ |
| 100 | 97 | public function getName() |
| 101 | 98 | { |
@@ -105,7 +102,7 @@ discard block |
||
| 105 | 102 | /** |
| 106 | 103 | * Returns street number |
| 107 | 104 | * |
| 108 | - * @return String |
|
| 105 | + * @return StringLiteral |
|
| 109 | 106 | */ |
| 110 | 107 | public function getNumber() |
| 111 | 108 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | protected $value; |
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | - * @param string $uuid |
|
| 18 | 17 | * @return UUID |
| 19 | 18 | * @throws \ValueObjects\Exception\InvalidNativeArgumentException |
| 20 | 19 | */ |
@@ -17,7 +17,6 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Returns a new Currency object from native string currency code |
| 19 | 19 | * |
| 20 | - * @param string $code Currency code |
|
| 21 | 20 | * @return static |
| 22 | 21 | */ |
| 23 | 22 | public static function fromNative() |
@@ -21,8 +21,6 @@ discard block |
||
| 21 | 21 | /** |
| 22 | 22 | * Returns a Money object from native int amount and string currency code |
| 23 | 23 | * |
| 24 | - * @param int $amount Amount expressed in the smallest units of $currency (e.g. cents) |
|
| 25 | - * @param string $currency Currency code of the money object |
|
| 26 | 24 | * @return static |
| 27 | 25 | */ |
| 28 | 26 | public static function fromNative() |
@@ -105,7 +103,7 @@ discard block |
||
| 105 | 103 | * Use 0 < Real $multipler < 1 for division. |
| 106 | 104 | * |
| 107 | 105 | * @param Real $multiplier |
| 108 | - * @param mixed $rounding_mode Rounding mode of the operation. Defaults to RoundingMode::HALF_UP. |
|
| 106 | + * @param null|RoundingMode $rounding_mode Rounding mode of the operation. Defaults to RoundingMode::HALF_UP. |
|
| 109 | 107 | * @return Money |
| 110 | 108 | */ |
| 111 | 109 | public function multiply(Real $multiplier, RoundingMode $rounding_mode = null) |
@@ -16,8 +16,6 @@ discard block |
||
| 16 | 16 | /** |
| 17 | 17 | * Returns a new Complex object from native PHP arguments |
| 18 | 18 | * |
| 19 | - * @param float $real Real part of the complex number |
|
| 20 | - * @param float $im Imaginary part of the complex number |
|
| 21 | 19 | * @return Complex|ValueObjectInterface |
| 22 | 20 | * @throws \BadMethodCallException |
| 23 | 21 | */ |
@@ -79,7 +77,7 @@ discard block |
||
| 79 | 77 | /** |
| 80 | 78 | * Returns the native value of the real and imaginary parts as an array |
| 81 | 79 | * |
| 82 | - * @return array |
|
| 80 | + * @return double[] |
|
| 83 | 81 | */ |
| 84 | 82 | public function toNative() |
| 85 | 83 | { |
@@ -13,7 +13,6 @@ discard block |
||
| 13 | 13 | /** |
| 14 | 14 | * Returns a Real object given a PHP native float as parameter. |
| 15 | 15 | * |
| 16 | - * @param float $number |
|
| 17 | 16 | * @return static |
| 18 | 17 | */ |
| 19 | 18 | public static function fromNative() |
@@ -26,7 +25,6 @@ discard block |
||
| 26 | 25 | /** |
| 27 | 26 | * Returns a Real object given a PHP native float as parameter. |
| 28 | 27 | * |
| 29 | - * @param float $number |
|
| 30 | 28 | */ |
| 31 | 29 | public function __construct($value) |
| 32 | 30 | { |
@@ -32,9 +32,6 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * Returns a Name objects form PHP native values |
| 34 | 34 | * |
| 35 | - * @param string $first_name |
|
| 36 | - * @param string $middle_name |
|
| 37 | - * @param string $last_name |
|
| 38 | 35 | * @return Name |
| 39 | 36 | */ |
| 40 | 37 | public static function fromNative() |
@@ -51,9 +48,9 @@ discard block |
||
| 51 | 48 | /** |
| 52 | 49 | * Returns a Name object |
| 53 | 50 | * |
| 54 | - * @param String $first_name |
|
| 55 | - * @param String $middle_name |
|
| 56 | - * @param String $last_name |
|
| 51 | + * @param StringLiteral $first_name |
|
| 52 | + * @param StringLiteral $middle_name |
|
| 53 | + * @param StringLiteral $last_name |
|
| 57 | 54 | */ |
| 58 | 55 | public function __construct(StringLiteral $first_name, StringLiteral $middle_name, StringLiteral $last_name) |
| 59 | 56 | { |
@@ -65,7 +62,7 @@ discard block |
||
| 65 | 62 | /** |
| 66 | 63 | * Returns the first name |
| 67 | 64 | * |
| 68 | - * @return String |
|
| 65 | + * @return StringLiteral |
|
| 69 | 66 | */ |
| 70 | 67 | public function getFirstName() |
| 71 | 68 | { |
@@ -75,7 +72,7 @@ discard block |
||
| 75 | 72 | /** |
| 76 | 73 | * Returns the middle name |
| 77 | 74 | * |
| 78 | - * @return String |
|
| 75 | + * @return StringLiteral |
|
| 79 | 76 | */ |
| 80 | 77 | public function getMiddleName() |
| 81 | 78 | { |
@@ -85,7 +82,7 @@ discard block |
||
| 85 | 82 | /** |
| 86 | 83 | * Returns the last name |
| 87 | 84 | * |
| 88 | - * @return String |
|
| 85 | + * @return StringLiteral |
|
| 89 | 86 | */ |
| 90 | 87 | public function getLastName() |
| 91 | 88 | { |
@@ -95,7 +92,7 @@ discard block |
||
| 95 | 92 | /** |
| 96 | 93 | * Returns the full name |
| 97 | 94 | * |
| 98 | - * @return String |
|
| 95 | + * @return StringLiteral |
|
| 99 | 96 | */ |
| 100 | 97 | public function getFullName() |
| 101 | 98 | { |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | /** |
| 14 | 14 | * Returns a StringLiteral object given a PHP native string as parameter. |
| 15 | 15 | * |
| 16 | - * @param string $value |
|
| 17 | 16 | * @return StringLiteral |
| 18 | 17 | */ |
| 19 | 18 | public static function fromNative() |