| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * This file is part of the Carbon package. |
| 5 | * |
| 6 | * (c) Brian Nesbitt <[email protected]> |
| 7 | * |
| 8 | * For the full copyright and license information, please view the LICENSE |
| 9 | * file that was distributed with this source code. |
| 10 | */ |
| 11 | |
| 12 | namespace Carbon; |
| 13 | |
| 14 | use DatePeriod; |
| 15 | |
| 16 | if (!class_exists(DatePeriodBase::class, false)) { |
| 17 | class DatePeriodBase extends DatePeriod |
| 18 | { |
| 19 | /** |
| 20 | * Period start in PHP < 8.2. |
| 21 | * |
| 22 | * @var CarbonInterface |
| 23 | * |
| 24 | * @deprecated PHP 8.2 this property is no longer in sync with the actual period start. |
| 25 | */ |
| 26 | protected $start; |
| 27 | |
| 28 | /** |
| 29 | * Period end in PHP < 8.2. |
| 30 | * |
| 31 | * @var CarbonInterface|null |
| 32 | * |
| 33 | * @deprecated PHP 8.2 this property is no longer in sync with the actual period end. |
| 34 | */ |
| 35 | protected $end; |
| 36 | |
| 37 | /** |
| 38 | * Period current iterated date in PHP < 8.2. |
| 39 | * |
| 40 | * @var CarbonInterface|null |
| 41 | * |
| 42 | * @deprecated PHP 8.2 this property is no longer in sync with the actual period current iterated date. |
| 43 | */ |
| 44 | protected $current; |
| 45 | |
| 46 | /** |
| 47 | * Period interval in PHP < 8.2. |
| 48 | * |
| 49 | * @var CarbonInterval|null |
| 50 | * |
| 51 | * @deprecated PHP 8.2 this property is no longer in sync with the actual period interval. |
| 52 | */ |
| 53 | protected $interval; |
| 54 | |
| 55 | /** |
| 56 | * Period recurrences in PHP < 8.2. |
| 57 | * |
| 58 | * @var int|float|null |
| 59 | * |
| 60 | * @deprecated PHP 8.2 this property is no longer in sync with the actual period recurrences. |
| 61 | */ |
| 62 | protected $recurrences; |
| 63 | |
| 64 | /** |
| 65 | * Period start included option in PHP < 8.2. |
| 66 | * |
| 67 | * @var bool |
| 68 | * |
| 69 | * @deprecated PHP 8.2 this property is no longer in sync with the actual period start included option. |
| 70 | */ |
| 71 | protected $include_start_date; |
| 72 | } |
| 73 | } |