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