mailpoet
/
vendor-prefixed
/
nesbot
/
carbon
/
src
/
Carbon
/
Exceptions
/
UnknownGetterException.php
BadComparisonUnitException.php
3 years ago
BadFluentConstructorException.php
3 years ago
BadFluentSetterException.php
3 years ago
BadMethodCallException.php
3 years ago
EndLessPeriodException.php
3 years ago
Exception.php
3 years ago
ImmutableException.php
3 years ago
InvalidArgumentException.php
3 years ago
InvalidCastException.php
3 years ago
InvalidDateException.php
3 years ago
InvalidFormatException.php
3 years ago
InvalidIntervalException.php
3 years ago
InvalidPeriodDateException.php
3 years ago
InvalidPeriodParameterException.php
3 years ago
InvalidTimeZoneException.php
3 years ago
InvalidTypeException.php
3 years ago
NotACarbonClassException.php
3 years ago
NotAPeriodException.php
3 years ago
NotLocaleAwareException.php
3 years ago
OutOfRangeException.php
3 years ago
ParseErrorException.php
3 years ago
RuntimeException.php
3 years ago
UnitException.php
3 years ago
UnitNotConfiguredException.php
3 years ago
UnknownGetterException.php
3 years ago
UnknownMethodException.php
3 years ago
UnknownSetterException.php
3 years ago
UnknownUnitException.php
3 years ago
UnreachableException.php
3 years ago
index.php
3 years ago
UnknownGetterException.php
19 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Carbon\Exceptions; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | use InvalidArgumentException as BaseInvalidArgumentException; |
| 5 | use Throwable; |
| 6 | class UnknownGetterException extends BaseInvalidArgumentException implements InvalidArgumentException |
| 7 | { |
| 8 | protected $getter; |
| 9 | public function __construct($getter, $code = 0, Throwable $previous = null) |
| 10 | { |
| 11 | $this->getter = $getter; |
| 12 | parent::__construct("Unknown getter '{$getter}'", $code, $previous); |
| 13 | } |
| 14 | public function getGetter() : string |
| 15 | { |
| 16 | return $this->getter; |
| 17 | } |
| 18 | } |
| 19 |