ProtectedDatePeriod.php 1.9 KB

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