@@ -16,34 +16,34 @@ |
||
| 16 | 16 | |
| 17 | 17 | class UnknownGetterException extends BaseInvalidArgumentException implements InvalidArgumentException |
| 18 | 18 | { |
| 19 | - /** |
|
| 20 | - * The getter. |
|
| 21 | - * |
|
| 22 | - * @var string |
|
| 23 | - */ |
|
| 24 | - protected $getter; |
|
| 19 | + /** |
|
| 20 | + * The getter. |
|
| 21 | + * |
|
| 22 | + * @var string |
|
| 23 | + */ |
|
| 24 | + protected $getter; |
|
| 25 | 25 | |
| 26 | - /** |
|
| 27 | - * Constructor. |
|
| 28 | - * |
|
| 29 | - * @param string $getter getter name |
|
| 30 | - * @param int $code |
|
| 31 | - * @param Throwable|null $previous |
|
| 32 | - */ |
|
| 33 | - public function __construct($getter, $code = 0, Throwable $previous = null) |
|
| 34 | - { |
|
| 35 | - $this->getter = $getter; |
|
| 26 | + /** |
|
| 27 | + * Constructor. |
|
| 28 | + * |
|
| 29 | + * @param string $getter getter name |
|
| 30 | + * @param int $code |
|
| 31 | + * @param Throwable|null $previous |
|
| 32 | + */ |
|
| 33 | + public function __construct($getter, $code = 0, Throwable $previous = null) |
|
| 34 | + { |
|
| 35 | + $this->getter = $getter; |
|
| 36 | 36 | |
| 37 | - parent::__construct("Unknown getter '$getter'", $code, $previous); |
|
| 38 | - } |
|
| 37 | + parent::__construct("Unknown getter '$getter'", $code, $previous); |
|
| 38 | + } |
|
| 39 | 39 | |
| 40 | - /** |
|
| 41 | - * Get the getter. |
|
| 42 | - * |
|
| 43 | - * @return string |
|
| 44 | - */ |
|
| 45 | - public function getGetter(): string |
|
| 46 | - { |
|
| 47 | - return $this->getter; |
|
| 48 | - } |
|
| 40 | + /** |
|
| 41 | + * Get the getter. |
|
| 42 | + * |
|
| 43 | + * @return string |
|
| 44 | + */ |
|
| 45 | + public function getGetter(): string |
|
| 46 | + { |
|
| 47 | + return $this->getter; |
|
| 48 | + } |
|
| 49 | 49 | } |
@@ -13,5 +13,5 @@ |
||
| 13 | 13 | |
| 14 | 14 | interface Exception |
| 15 | 15 | { |
| 16 | - // |
|
| 16 | + // |
|
| 17 | 17 | } |
@@ -15,34 +15,34 @@ |
||
| 15 | 15 | |
| 16 | 16 | class UnknownUnitException extends UnitException |
| 17 | 17 | { |
| 18 | - /** |
|
| 19 | - * The unit. |
|
| 20 | - * |
|
| 21 | - * @var string |
|
| 22 | - */ |
|
| 23 | - protected $unit; |
|
| 18 | + /** |
|
| 19 | + * The unit. |
|
| 20 | + * |
|
| 21 | + * @var string |
|
| 22 | + */ |
|
| 23 | + protected $unit; |
|
| 24 | 24 | |
| 25 | - /** |
|
| 26 | - * Constructor. |
|
| 27 | - * |
|
| 28 | - * @param string $unit |
|
| 29 | - * @param int $code |
|
| 30 | - * @param Throwable|null $previous |
|
| 31 | - */ |
|
| 32 | - public function __construct($unit, $code = 0, Throwable $previous = null) |
|
| 33 | - { |
|
| 34 | - $this->unit = $unit; |
|
| 25 | + /** |
|
| 26 | + * Constructor. |
|
| 27 | + * |
|
| 28 | + * @param string $unit |
|
| 29 | + * @param int $code |
|
| 30 | + * @param Throwable|null $previous |
|
| 31 | + */ |
|
| 32 | + public function __construct($unit, $code = 0, Throwable $previous = null) |
|
| 33 | + { |
|
| 34 | + $this->unit = $unit; |
|
| 35 | 35 | |
| 36 | - parent::__construct("Unknown unit '$unit'.", $code, $previous); |
|
| 37 | - } |
|
| 36 | + parent::__construct("Unknown unit '$unit'.", $code, $previous); |
|
| 37 | + } |
|
| 38 | 38 | |
| 39 | - /** |
|
| 40 | - * Get the unit. |
|
| 41 | - * |
|
| 42 | - * @return string |
|
| 43 | - */ |
|
| 44 | - public function getUnit(): string |
|
| 45 | - { |
|
| 46 | - return $this->unit; |
|
| 47 | - } |
|
| 39 | + /** |
|
| 40 | + * Get the unit. |
|
| 41 | + * |
|
| 42 | + * @return string |
|
| 43 | + */ |
|
| 44 | + public function getUnit(): string |
|
| 45 | + { |
|
| 46 | + return $this->unit; |
|
| 47 | + } |
|
| 48 | 48 | } |
@@ -13,5 +13,5 @@ |
||
| 13 | 13 | |
| 14 | 14 | interface BadMethodCallException extends Exception |
| 15 | 15 | { |
| 16 | - // |
|
| 16 | + // |
|
| 17 | 17 | } |
@@ -17,34 +17,34 @@ |
||
| 17 | 17 | |
| 18 | 18 | class NotACarbonClassException extends BaseInvalidArgumentException implements InvalidArgumentException |
| 19 | 19 | { |
| 20 | - /** |
|
| 21 | - * The className. |
|
| 22 | - * |
|
| 23 | - * @var string |
|
| 24 | - */ |
|
| 25 | - protected $className; |
|
| 20 | + /** |
|
| 21 | + * The className. |
|
| 22 | + * |
|
| 23 | + * @var string |
|
| 24 | + */ |
|
| 25 | + protected $className; |
|
| 26 | 26 | |
| 27 | - /** |
|
| 28 | - * Constructor. |
|
| 29 | - * |
|
| 30 | - * @param string $className |
|
| 31 | - * @param int $code |
|
| 32 | - * @param Throwable|null $previous |
|
| 33 | - */ |
|
| 34 | - public function __construct($className, $code = 0, Throwable $previous = null) |
|
| 35 | - { |
|
| 36 | - $this->className = $className; |
|
| 27 | + /** |
|
| 28 | + * Constructor. |
|
| 29 | + * |
|
| 30 | + * @param string $className |
|
| 31 | + * @param int $code |
|
| 32 | + * @param Throwable|null $previous |
|
| 33 | + */ |
|
| 34 | + public function __construct($className, $code = 0, Throwable $previous = null) |
|
| 35 | + { |
|
| 36 | + $this->className = $className; |
|
| 37 | 37 | |
| 38 | - parent::__construct(sprintf('Given class does not implement %s: %s', CarbonInterface::class, $className), $code, $previous); |
|
| 39 | - } |
|
| 38 | + parent::__construct(sprintf('Given class does not implement %s: %s', CarbonInterface::class, $className), $code, $previous); |
|
| 39 | + } |
|
| 40 | 40 | |
| 41 | - /** |
|
| 42 | - * Get the className. |
|
| 43 | - * |
|
| 44 | - * @return string |
|
| 45 | - */ |
|
| 46 | - public function getClassName(): string |
|
| 47 | - { |
|
| 48 | - return $this->className; |
|
| 49 | - } |
|
| 41 | + /** |
|
| 42 | + * Get the className. |
|
| 43 | + * |
|
| 44 | + * @return string |
|
| 45 | + */ |
|
| 46 | + public function getClassName(): string |
|
| 47 | + { |
|
| 48 | + return $this->className; |
|
| 49 | + } |
|
| 50 | 50 | } |
@@ -15,5 +15,5 @@ |
||
| 15 | 15 | |
| 16 | 16 | class NotAPeriodException extends BaseInvalidArgumentException implements InvalidArgumentException |
| 17 | 17 | { |
| 18 | - // |
|
| 18 | + // |
|
| 19 | 19 | } |
@@ -16,34 +16,34 @@ |
||
| 16 | 16 | |
| 17 | 17 | class UnknownMethodException 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("Method $method does not exist.", $code, $previous); |
|
| 38 | - } |
|
| 37 | + parent::__construct("Method $method does not exist.", $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 InvalidTimeZoneException extends BaseInvalidArgumentException implements InvalidArgumentException |
| 17 | 17 | { |
| 18 | - // |
|
| 18 | + // |
|
| 19 | 19 | } |
@@ -15,5 +15,5 @@ |
||
| 15 | 15 | |
| 16 | 16 | class InvalidCastException extends BaseInvalidArgumentException implements InvalidArgumentException |
| 17 | 17 | { |
| 18 | - // |
|
| 18 | + // |
|
| 19 | 19 | } |