Exceptions
8 months ago
Lang
3 years ago
List
3 years ago
MessageFormatter
2 years ago
Traits
8 months ago
AbstractTranslator.php
8 months ago
Carbon.php
8 months ago
CarbonConverterInterface.php
4 years ago
CarbonImmutable.php
8 months ago
CarbonInterface.php
8 months ago
CarbonInterval.php
2 years ago
CarbonPeriod.php
8 months ago
CarbonPeriodImmutable.php
2 years ago
CarbonTimeZone.php
8 months ago
Factory.php
8 months ago
FactoryImmutable.php
2 years ago
Language.php
4 years ago
Translator.php
4 years ago
TranslatorImmutable.php
8 months ago
TranslatorStrongTypeInterface.php
4 years ago
index.php
3 years ago
CarbonPeriodImmutable.php
13 lines
| 1 | <?php |
| 2 | namespace MailPoetVendor\Carbon; |
| 3 | if (!defined('ABSPATH')) exit; |
| 4 | class CarbonPeriodImmutable extends CarbonPeriod |
| 5 | { |
| 6 | protected const DEFAULT_DATE_CLASS = CarbonImmutable::class; |
| 7 | protected $dateClass = CarbonImmutable::class; |
| 8 | protected function copyIfImmutable() |
| 9 | { |
| 10 | return $this->constructed ? clone $this : $this; |
| 11 | } |
| 12 | } |
| 13 |