@@ -15,5 +15,5 @@ |
||
| 15 | 15 | |
| 16 | 16 | final class EndLessPeriodException extends BaseRuntimeException implements RuntimeException |
| 17 | 17 | { |
| 18 | - // |
|
| 18 | + // |
|
| 19 | 19 | } |
@@ -15,5 +15,5 @@ |
||
| 15 | 15 | |
| 16 | 16 | class InvalidIntervalException extends BaseInvalidArgumentException implements InvalidArgumentException |
| 17 | 17 | { |
| 18 | - // |
|
| 18 | + // |
|
| 19 | 19 | } |
@@ -16,33 +16,33 @@ |
||
| 16 | 16 | |
| 17 | 17 | class ImmutableException extends BaseRuntimeException implements RuntimeException |
| 18 | 18 | { |
| 19 | - /** |
|
| 20 | - * The value. |
|
| 21 | - * |
|
| 22 | - * @var string |
|
| 23 | - */ |
|
| 24 | - protected $value; |
|
| 19 | + /** |
|
| 20 | + * The value. |
|
| 21 | + * |
|
| 22 | + * @var string |
|
| 23 | + */ |
|
| 24 | + protected $value; |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Constructor. |
|
| 28 | - * |
|
| 29 | - * @param string $value the immutable type/value |
|
| 30 | - * @param int $code |
|
| 31 | - * @param Throwable|null $previous |
|
| 32 | - */ |
|
| 33 | - public function __construct($value, $code = 0, Throwable $previous = null) |
|
| 34 | - { |
|
| 35 | - $this->value = $value; |
|
| 36 | - parent::__construct("$value is immutable.", $code, $previous); |
|
| 37 | - } |
|
| 26 | + /** |
|
| 27 | + * Constructor. |
|
| 28 | + * |
|
| 29 | + * @param string $value the immutable type/value |
|
| 30 | + * @param int $code |
|
| 31 | + * @param Throwable|null $previous |
|
| 32 | + */ |
|
| 33 | + public function __construct($value, $code = 0, Throwable $previous = null) |
|
| 34 | + { |
|
| 35 | + $this->value = $value; |
|
| 36 | + parent::__construct("$value is immutable.", $code, $previous); |
|
| 37 | + } |
|
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * Get the value. |
|
| 41 | - * |
|
| 42 | - * @return string |
|
| 43 | - */ |
|
| 44 | - public function getValue(): string |
|
| 45 | - { |
|
| 46 | - return $this->value; |
|
| 47 | - } |
|
| 39 | + /** |
|
| 40 | + * Get the value. |
|
| 41 | + * |
|
| 42 | + * @return string |
|
| 43 | + */ |
|
| 44 | + public function getValue(): string |
|
| 45 | + { |
|
| 46 | + return $this->value; |
|
| 47 | + } |
|
| 48 | 48 | } |
@@ -16,52 +16,52 @@ |
||
| 16 | 16 | |
| 17 | 17 | class InvalidDateException extends BaseInvalidArgumentException implements InvalidArgumentException |
| 18 | 18 | { |
| 19 | - /** |
|
| 20 | - * The invalid field. |
|
| 21 | - * |
|
| 22 | - * @var string |
|
| 23 | - */ |
|
| 24 | - private $field; |
|
| 19 | + /** |
|
| 20 | + * The invalid field. |
|
| 21 | + * |
|
| 22 | + * @var string |
|
| 23 | + */ |
|
| 24 | + private $field; |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * The invalid value. |
|
| 28 | - * |
|
| 29 | - * @var mixed |
|
| 30 | - */ |
|
| 31 | - private $value; |
|
| 26 | + /** |
|
| 27 | + * The invalid value. |
|
| 28 | + * |
|
| 29 | + * @var mixed |
|
| 30 | + */ |
|
| 31 | + private $value; |
|
| 32 | 32 | |
| 33 | - /** |
|
| 34 | - * Constructor. |
|
| 35 | - * |
|
| 36 | - * @param string $field |
|
| 37 | - * @param mixed $value |
|
| 38 | - * @param int $code |
|
| 39 | - * @param Throwable|null $previous |
|
| 40 | - */ |
|
| 41 | - public function __construct($field, $value, $code = 0, Throwable $previous = null) |
|
| 42 | - { |
|
| 43 | - $this->field = $field; |
|
| 44 | - $this->value = $value; |
|
| 45 | - parent::__construct($field.' : '.$value.' is not a valid value.', $code, $previous); |
|
| 46 | - } |
|
| 33 | + /** |
|
| 34 | + * Constructor. |
|
| 35 | + * |
|
| 36 | + * @param string $field |
|
| 37 | + * @param mixed $value |
|
| 38 | + * @param int $code |
|
| 39 | + * @param Throwable|null $previous |
|
| 40 | + */ |
|
| 41 | + public function __construct($field, $value, $code = 0, Throwable $previous = null) |
|
| 42 | + { |
|
| 43 | + $this->field = $field; |
|
| 44 | + $this->value = $value; |
|
| 45 | + parent::__construct($field.' : '.$value.' is not a valid value.', $code, $previous); |
|
| 46 | + } |
|
| 47 | 47 | |
| 48 | - /** |
|
| 49 | - * Get the invalid field. |
|
| 50 | - * |
|
| 51 | - * @return string |
|
| 52 | - */ |
|
| 53 | - public function getField() |
|
| 54 | - { |
|
| 55 | - return $this->field; |
|
| 56 | - } |
|
| 48 | + /** |
|
| 49 | + * Get the invalid field. |
|
| 50 | + * |
|
| 51 | + * @return string |
|
| 52 | + */ |
|
| 53 | + public function getField() |
|
| 54 | + { |
|
| 55 | + return $this->field; |
|
| 56 | + } |
|
| 57 | 57 | |
| 58 | - /** |
|
| 59 | - * Get the invalid value. |
|
| 60 | - * |
|
| 61 | - * @return mixed |
|
| 62 | - */ |
|
| 63 | - public function getValue() |
|
| 64 | - { |
|
| 65 | - return $this->value; |
|
| 66 | - } |
|
| 58 | + /** |
|
| 59 | + * Get the invalid value. |
|
| 60 | + * |
|
| 61 | + * @return mixed |
|
| 62 | + */ |
|
| 63 | + public function getValue() |
|
| 64 | + { |
|
| 65 | + return $this->value; |
|
| 66 | + } |
|
| 67 | 67 | } |
@@ -15,5 +15,5 @@ |
||
| 15 | 15 | |
| 16 | 16 | class InvalidPeriodDateException extends BaseInvalidArgumentException implements InvalidArgumentException |
| 17 | 17 | { |
| 18 | - // |
|
| 18 | + // |
|
| 19 | 19 | } |
@@ -16,73 +16,73 @@ |
||
| 16 | 16 | |
| 17 | 17 | class ParseErrorException extends BaseInvalidArgumentException implements InvalidArgumentException |
| 18 | 18 | { |
| 19 | - /** |
|
| 20 | - * The expected. |
|
| 21 | - * |
|
| 22 | - * @var string |
|
| 23 | - */ |
|
| 24 | - protected $expected; |
|
| 19 | + /** |
|
| 20 | + * The expected. |
|
| 21 | + * |
|
| 22 | + * @var string |
|
| 23 | + */ |
|
| 24 | + protected $expected; |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * The actual. |
|
| 28 | - * |
|
| 29 | - * @var string |
|
| 30 | - */ |
|
| 31 | - protected $actual; |
|
| 26 | + /** |
|
| 27 | + * The actual. |
|
| 28 | + * |
|
| 29 | + * @var string |
|
| 30 | + */ |
|
| 31 | + protected $actual; |
|
| 32 | 32 | |
| 33 | - /** |
|
| 34 | - * The help message. |
|
| 35 | - * |
|
| 36 | - * @var string |
|
| 37 | - */ |
|
| 38 | - protected $help; |
|
| 33 | + /** |
|
| 34 | + * The help message. |
|
| 35 | + * |
|
| 36 | + * @var string |
|
| 37 | + */ |
|
| 38 | + protected $help; |
|
| 39 | 39 | |
| 40 | - /** |
|
| 41 | - * Constructor. |
|
| 42 | - * |
|
| 43 | - * @param string $expected |
|
| 44 | - * @param string $actual |
|
| 45 | - * @param int $code |
|
| 46 | - * @param Throwable|null $previous |
|
| 47 | - */ |
|
| 48 | - public function __construct($expected, $actual, $help = '', $code = 0, Throwable $previous = null) |
|
| 49 | - { |
|
| 50 | - $this->expected = $expected; |
|
| 51 | - $this->actual = $actual; |
|
| 52 | - $this->help = $help; |
|
| 40 | + /** |
|
| 41 | + * Constructor. |
|
| 42 | + * |
|
| 43 | + * @param string $expected |
|
| 44 | + * @param string $actual |
|
| 45 | + * @param int $code |
|
| 46 | + * @param Throwable|null $previous |
|
| 47 | + */ |
|
| 48 | + public function __construct($expected, $actual, $help = '', $code = 0, Throwable $previous = null) |
|
| 49 | + { |
|
| 50 | + $this->expected = $expected; |
|
| 51 | + $this->actual = $actual; |
|
| 52 | + $this->help = $help; |
|
| 53 | 53 | |
| 54 | - $actual = $actual === '' ? 'data is missing' : "get '$actual'"; |
|
| 54 | + $actual = $actual === '' ? 'data is missing' : "get '$actual'"; |
|
| 55 | 55 | |
| 56 | - parent::__construct(trim("Format expected $expected but $actual\n$help"), $code, $previous); |
|
| 57 | - } |
|
| 56 | + parent::__construct(trim("Format expected $expected but $actual\n$help"), $code, $previous); |
|
| 57 | + } |
|
| 58 | 58 | |
| 59 | - /** |
|
| 60 | - * Get the expected. |
|
| 61 | - * |
|
| 62 | - * @return string |
|
| 63 | - */ |
|
| 64 | - public function getExpected(): string |
|
| 65 | - { |
|
| 66 | - return $this->expected; |
|
| 67 | - } |
|
| 59 | + /** |
|
| 60 | + * Get the expected. |
|
| 61 | + * |
|
| 62 | + * @return string |
|
| 63 | + */ |
|
| 64 | + public function getExpected(): string |
|
| 65 | + { |
|
| 66 | + return $this->expected; |
|
| 67 | + } |
|
| 68 | 68 | |
| 69 | - /** |
|
| 70 | - * Get the actual. |
|
| 71 | - * |
|
| 72 | - * @return string |
|
| 73 | - */ |
|
| 74 | - public function getActual(): string |
|
| 75 | - { |
|
| 76 | - return $this->actual; |
|
| 77 | - } |
|
| 69 | + /** |
|
| 70 | + * Get the actual. |
|
| 71 | + * |
|
| 72 | + * @return string |
|
| 73 | + */ |
|
| 74 | + public function getActual(): string |
|
| 75 | + { |
|
| 76 | + return $this->actual; |
|
| 77 | + } |
|
| 78 | 78 | |
| 79 | - /** |
|
| 80 | - * Get the help message. |
|
| 81 | - * |
|
| 82 | - * @return string |
|
| 83 | - */ |
|
| 84 | - public function getHelp(): string |
|
| 85 | - { |
|
| 86 | - return $this->help; |
|
| 87 | - } |
|
| 79 | + /** |
|
| 80 | + * Get the help message. |
|
| 81 | + * |
|
| 82 | + * @return string |
|
| 83 | + */ |
|
| 84 | + public function getHelp(): string |
|
| 85 | + { |
|
| 86 | + return $this->help; |
|
| 87 | + } |
|
| 88 | 88 | } |
@@ -15,5 +15,5 @@ |
||
| 15 | 15 | |
| 16 | 16 | class UnitException extends BaseInvalidArgumentException implements InvalidArgumentException |
| 17 | 17 | { |
| 18 | - // |
|
| 18 | + // |
|
| 19 | 19 | } |
@@ -16,34 +16,34 @@ |
||
| 16 | 16 | |
| 17 | 17 | class BadFluentConstructorException extends BaseBadMethodCallException implements BadMethodCallException |
| 18 | 18 | { |
| 19 | - /** |
|
| 20 | - * The method. |
|
| 21 | - * |
|
| 22 | - * @var string |
|
| 23 | - */ |
|
| 24 | - protected $method; |
|
| 19 | + /** |
|
| 20 | + * The method. |
|
| 21 | + * |
|
| 22 | + * @var string |
|
| 23 | + */ |
|
| 24 | + protected $method; |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Constructor. |
|
| 28 | - * |
|
| 29 | - * @param string $method |
|
| 30 | - * @param int $code |
|
| 31 | - * @param Throwable|null $previous |
|
| 32 | - */ |
|
| 33 | - public function __construct($method, $code = 0, Throwable $previous = null) |
|
| 34 | - { |
|
| 35 | - $this->method = $method; |
|
| 26 | + /** |
|
| 27 | + * Constructor. |
|
| 28 | + * |
|
| 29 | + * @param string $method |
|
| 30 | + * @param int $code |
|
| 31 | + * @param Throwable|null $previous |
|
| 32 | + */ |
|
| 33 | + public function __construct($method, $code = 0, Throwable $previous = null) |
|
| 34 | + { |
|
| 35 | + $this->method = $method; |
|
| 36 | 36 | |
| 37 | - parent::__construct(sprintf("Unknown fluent constructor '%s'.", $method), $code, $previous); |
|
| 38 | - } |
|
| 37 | + parent::__construct(sprintf("Unknown fluent constructor '%s'.", $method), $code, $previous); |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - /** |
|
| 41 | - * Get the method. |
|
| 42 | - * |
|
| 43 | - * @return string |
|
| 44 | - */ |
|
| 45 | - public function getMethod(): string |
|
| 46 | - { |
|
| 47 | - return $this->method; |
|
| 48 | - } |
|
| 40 | + /** |
|
| 41 | + * Get the method. |
|
| 42 | + * |
|
| 43 | + * @return string |
|
| 44 | + */ |
|
| 45 | + public function getMethod(): string |
|
| 46 | + { |
|
| 47 | + return $this->method; |
|
| 48 | + } |
|
| 49 | 49 | } |
@@ -15,5 +15,5 @@ |
||
| 15 | 15 | |
| 16 | 16 | class UnreachableException extends BaseRuntimeException implements RuntimeException |
| 17 | 17 | { |
| 18 | - // |
|
| 18 | + // |
|
| 19 | 19 | } |