Cli
2 months ago
Exceptions
2 months ago
Lang
2 months ago
Laravel
2 months ago
List
2 months ago
MessageFormatter
2 months ago
PHPStan
2 months ago
Traits
2 months ago
AbstractTranslator.php
2 months ago
Carbon.php
2 months ago
CarbonConverterInterface.php
2 months ago
CarbonImmutable.php
2 months ago
CarbonInterface.php
2 months ago
CarbonInterval.php
2 months ago
CarbonPeriod.php
2 months ago
CarbonPeriodImmutable.php
2 months ago
CarbonTimeZone.php
2 months ago
Factory.php
2 months ago
FactoryImmutable.php
2 months ago
Language.php
2 months ago
Translator.php
2 months ago
TranslatorImmutable.php
2 months ago
TranslatorStrongTypeInterface.php
2 months ago
CarbonPeriodImmutable.php
38 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * This file is part of the Carbon package. |
| 5 | * |
| 6 | * (c) Brian Nesbitt <brian@nesbot.com> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | namespace ProfilePressVendor\Carbon; |
| 12 | |
| 13 | class CarbonPeriodImmutable extends CarbonPeriod |
| 14 | { |
| 15 | /** |
| 16 | * Default date class of iteration items. |
| 17 | * |
| 18 | * @var string |
| 19 | */ |
| 20 | protected const DEFAULT_DATE_CLASS = CarbonImmutable::class; |
| 21 | /** |
| 22 | * Date class of iteration items. |
| 23 | * |
| 24 | * @var string |
| 25 | */ |
| 26 | protected $dateClass = CarbonImmutable::class; |
| 27 | /** |
| 28 | * Prepare the instance to be set (self if mutable to be mutated, |
| 29 | * copy if immutable to generate a new instance). |
| 30 | * |
| 31 | * @return static |
| 32 | */ |
| 33 | protected function copyIfImmutable() |
| 34 | { |
| 35 | return $this->constructed ? clone $this : $this; |
| 36 | } |
| 37 | } |
| 38 |