Your Name 11 months ago
parent
commit
cfaaa533bb
100 changed files with 16809 additions and 0 deletions
  1. 124
    0
      addons/queue/jobs/TagHandle.php
  2. 124
    0
      application/api/queue/jobs/TagHandle.php
  3. 21
    0
      vendor/carbonphp/carbon-doctrine-types/LICENSE
  4. 14
    0
      vendor/carbonphp/carbon-doctrine-types/README.md
  5. 36
    0
      vendor/carbonphp/carbon-doctrine-types/composer.json
  6. 14
    0
      vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonDoctrineType.php
  7. 7
    0
      vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonImmutableType.php
  8. 7
    0
      vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonType.php
  9. 141
    0
      vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonTypeConverter.php
  10. 28
    0
      vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeDefaultPrecision.php
  11. 20
    0
      vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeImmutableType.php
  12. 12
    0
      vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeType.php
  13. 11
    0
      vendor/myclabs/php-enum/stubs/Stringable.php
  14. 10
    0
      vendor/nesbot/carbon/.phpstorm.meta.php
  15. 19
    0
      vendor/nesbot/carbon/LICENSE
  16. 23
    0
      vendor/nesbot/carbon/bin/carbon
  17. 4
    0
      vendor/nesbot/carbon/bin/carbon.bat
  18. 127
    0
      vendor/nesbot/carbon/composer.json
  19. 5
    0
      vendor/nesbot/carbon/extension.neon
  20. 28
    0
      vendor/nesbot/carbon/lazy/Carbon/MessageFormatter/MessageFormatterMapperStrongType.php
  21. 36
    0
      vendor/nesbot/carbon/lazy/Carbon/MessageFormatter/MessageFormatterMapperWeakType.php
  22. 36
    0
      vendor/nesbot/carbon/lazy/Carbon/PHPStan/AbstractMacroBuiltin.php
  23. 45
    0
      vendor/nesbot/carbon/lazy/Carbon/PHPStan/AbstractMacroStatic.php
  24. 45
    0
      vendor/nesbot/carbon/lazy/Carbon/PHPStan/MacroStrongType.php
  25. 51
    0
      vendor/nesbot/carbon/lazy/Carbon/PHPStan/MacroWeakType.php
  26. 52
    0
      vendor/nesbot/carbon/lazy/Carbon/TranslatorStrongType.php
  27. 32
    0
      vendor/nesbot/carbon/lazy/Carbon/TranslatorWeakType.php
  28. 175
    0
      vendor/nesbot/carbon/readme.md
  29. 129
    0
      vendor/nesbot/carbon/sponsors.php
  30. 398
    0
      vendor/nesbot/carbon/src/Carbon/AbstractTranslator.php
  31. 523
    0
      vendor/nesbot/carbon/src/Carbon/Carbon.php
  32. 19
    0
      vendor/nesbot/carbon/src/Carbon/CarbonConverterInterface.php
  33. 582
    0
      vendor/nesbot/carbon/src/Carbon/CarbonImmutable.php
  34. 5142
    0
      vendor/nesbot/carbon/src/Carbon/CarbonInterface.php
  35. 3054
    0
      vendor/nesbot/carbon/src/Carbon/CarbonInterval.php
  36. 2742
    0
      vendor/nesbot/carbon/src/Carbon/CarbonPeriod.php
  37. 40
    0
      vendor/nesbot/carbon/src/Carbon/CarbonPeriodImmutable.php
  38. 320
    0
      vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php
  39. 38
    0
      vendor/nesbot/carbon/src/Carbon/Cli/Invoker.php
  40. 48
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/BadComparisonUnitException.php
  41. 49
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentConstructorException.php
  42. 49
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentSetterException.php
  43. 17
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/BadMethodCallException.php
  44. 19
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/EndLessPeriodException.php
  45. 17
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/Exception.php
  46. 48
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/ImmutableException.php
  47. 17
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidArgumentException.php
  48. 19
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidCastException.php
  49. 67
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidDateException.php
  50. 19
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidFormatException.php
  51. 19
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidIntervalException.php
  52. 19
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodDateException.php
  53. 19
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodParameterException.php
  54. 19
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTimeZoneException.php
  55. 19
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTypeException.php
  56. 50
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/NotACarbonClassException.php
  57. 19
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/NotAPeriodException.php
  58. 32
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/NotLocaleAwareException.php
  59. 101
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/OutOfRangeException.php
  60. 88
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/ParseErrorException.php
  61. 17
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/RuntimeException.php
  62. 19
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/UnitException.php
  63. 48
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/UnitNotConfiguredException.php
  64. 49
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownGetterException.php
  65. 49
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownMethodException.php
  66. 49
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownSetterException.php
  67. 48
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownUnitException.php
  68. 19
    0
      vendor/nesbot/carbon/src/Carbon/Exceptions/UnreachableException.php
  69. 326
    0
      vendor/nesbot/carbon/src/Carbon/Factory.php
  70. 259
    0
      vendor/nesbot/carbon/src/Carbon/FactoryImmutable.php
  71. 15
    0
      vendor/nesbot/carbon/src/Carbon/Lang/aa.php
  72. 44
    0
      vendor/nesbot/carbon/src/Carbon/Lang/aa_DJ.php
  73. 28
    0
      vendor/nesbot/carbon/src/Carbon/Lang/aa_ER.php
  74. 28
    0
      vendor/nesbot/carbon/src/Carbon/Lang/aa_ER@saaho.php
  75. 27
    0
      vendor/nesbot/carbon/src/Carbon/Lang/aa_ET.php
  76. 79
    0
      vendor/nesbot/carbon/src/Carbon/Lang/af.php
  77. 28
    0
      vendor/nesbot/carbon/src/Carbon/Lang/af_NA.php
  78. 12
    0
      vendor/nesbot/carbon/src/Carbon/Lang/af_ZA.php
  79. 28
    0
      vendor/nesbot/carbon/src/Carbon/Lang/agq.php
  80. 15
    0
      vendor/nesbot/carbon/src/Carbon/Lang/agr.php
  81. 44
    0
      vendor/nesbot/carbon/src/Carbon/Lang/agr_PE.php
  82. 15
    0
      vendor/nesbot/carbon/src/Carbon/Lang/ak.php
  83. 40
    0
      vendor/nesbot/carbon/src/Carbon/Lang/ak_GH.php
  84. 15
    0
      vendor/nesbot/carbon/src/Carbon/Lang/am.php
  85. 58
    0
      vendor/nesbot/carbon/src/Carbon/Lang/am_ET.php
  86. 15
    0
      vendor/nesbot/carbon/src/Carbon/Lang/an.php
  87. 55
    0
      vendor/nesbot/carbon/src/Carbon/Lang/an_ES.php
  88. 15
    0
      vendor/nesbot/carbon/src/Carbon/Lang/anp.php
  89. 27
    0
      vendor/nesbot/carbon/src/Carbon/Lang/anp_IN.php
  90. 93
    0
      vendor/nesbot/carbon/src/Carbon/Lang/ar.php
  91. 29
    0
      vendor/nesbot/carbon/src/Carbon/Lang/ar_AE.php
  92. 29
    0
      vendor/nesbot/carbon/src/Carbon/Lang/ar_BH.php
  93. 13
    0
      vendor/nesbot/carbon/src/Carbon/Lang/ar_DJ.php
  94. 92
    0
      vendor/nesbot/carbon/src/Carbon/Lang/ar_DZ.php
  95. 29
    0
      vendor/nesbot/carbon/src/Carbon/Lang/ar_EG.php
  96. 13
    0
      vendor/nesbot/carbon/src/Carbon/Lang/ar_EH.php
  97. 13
    0
      vendor/nesbot/carbon/src/Carbon/Lang/ar_ER.php
  98. 13
    0
      vendor/nesbot/carbon/src/Carbon/Lang/ar_IL.php
  99. 26
    0
      vendor/nesbot/carbon/src/Carbon/Lang/ar_IN.php
  100. 0
    0
      vendor/nesbot/carbon/src/Carbon/Lang/ar_IQ.php

+ 124
- 0
addons/queue/jobs/TagHandle.php View File

@@ -0,0 +1,124 @@
1
+<?php
2
+// +----------------------------------------------------------------------
3
+// | Yzncms [ 御宅男工作室 ]
4
+// +----------------------------------------------------------------------
5
+// | Copyright (c) 2018 http://yzncms.com All rights reserved.
6
+// +----------------------------------------------------------------------
7
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
8
+// +----------------------------------------------------------------------
9
+// | Author: 御宅男 <530765310@qq.com>
10
+// +----------------------------------------------------------------------
11
+
12
+// +----------------------------------------------------------------------
13
+// | 测试队列,仅供参考
14
+// +----------------------------------------------------------------------
15
+namespace addons\queue\jobs;
16
+
17
+use think\facade\Log;
18
+use think\queue\Job;
19
+
20
+class TagHandle
21
+{
22
+
23
+    /**
24
+     * fire方法是消息队列默认调用的方法
25
+     * @param Job            $job      当前的任务对象
26
+     * @param array|mixed    $data     发布任务时自定义的数据
27
+     */
28
+    public function fire(Job $job, $data)
29
+    {
30
+        $isJobDone = $this->doHelloJob($data);
31
+        if ($isJobDone) {
32
+            // 如果任务执行成功, 记得删除任务
33
+            $job->delete();
34
+            print("<info>Hello Job has been done and deleted" . "</info>\n");
35
+        } else {
36
+            //超过3次删除任务 如果不删除 并且命令行附带--tries参数,则会执行failed方法
37
+            if ($job->attempts() > 3) {
38
+                $job->delete();
39
+                print("<warn>Hello Job has been retried more than 3 times!" . "</warn>\n");
40
+            } else {
41
+                //5秒后从新放入队列
42
+                $job->release(5);
43
+            }
44
+        }
45
+    }
46
+
47
+    //多任务A 在发布任务时,需要用 push('任务的类名@方法名')
48
+    public function taskA(Job $job, $data)
49
+    {
50
+        $isJobDone = $this->_doTaskA($data);
51
+        if ($isJobDone) {
52
+            $job->delete();
53
+            print("Info: TaskA of Job MultiTask has been done and deleted" . "\n");
54
+        } else {
55
+            if ($job->attempts() > 3) {
56
+                $job->delete();
57
+            }
58
+        }
59
+    }
60
+
61
+    //多任务B 在发布任务时,需要用 push('任务的类名@方法名')
62
+    public function taskB(Job $job, $data)
63
+    {
64
+        $isJobDone = $this->_doTaskA($data);
65
+        if ($isJobDone) {
66
+            $job->delete();
67
+            print("Info: TaskB of Job MultiTask has been done and deleted" . "\n");
68
+        } else {
69
+            if ($job->attempts() > 2) {
70
+                $job->release();
71
+            }
72
+        }
73
+    }
74
+
75
+    /**
76
+     * 根据消息中的数据进行实际的业务处理...
77
+     */
78
+    private function doHelloJob($data)
79
+    {
80
+/*        print("<info>Hello Job Started. job Data is: " . var_export($data, true) . "</info> \n");
81
+        print("<info>Hello Job is Fired at " . date('Y-m-d H:i:s') . "</info> \n");
82
+        print("<info>Hello Job is Done!" . "</info> \n");*/
83
+
84
+        /*
85
+         * "data": {
86
+            "ts": 1713866309,
87
+            "url": "http:\/\/console.zx2049.com\/api\/cms\/tagHandle",
88
+            "taskid": 10,
89
+            "area_id": 1,
90
+            "area_name": "\u5e7f\u4e1c"
91
+          },
92
+         */
93
+
94
+        //测试
95
+        print("<info>执行标签处理: " . $data['area_id'] . "</info> \n");
96
+
97
+        /*//拼装url
98
+        $url = $data['url'].'?taskid='.$data['taskid'].'&diqu='.$data['area_id'];
99
+        //发送执行
100
+        $content = file_get_contents($url);
101
+        echo $content;*/
102
+
103
+        return true;
104
+    }
105
+
106
+    private function _doTaskA($data)
107
+    {
108
+        print("Info: doing TaskA of Job MultiTask " . "\n");
109
+        return true;
110
+    }
111
+
112
+    private function _doTaskB($data)
113
+    {
114
+        print("Info: doing TaskB of Job MultiTask " . "\n");
115
+        return true;
116
+    }
117
+
118
+    //此函数可以省略 通常用于定义通知管理员队列失败
119
+    //任务最终失败回调 命令行的 --tries 参数的值大于0生效
120
+    public function failed($jobData)
121
+    {
122
+        Log::error("Warning: Job failed after max retries. job data is :" . var_export($jobData, true));
123
+    }
124
+}

+ 124
- 0
application/api/queue/jobs/TagHandle.php View File

@@ -0,0 +1,124 @@
1
+<?php
2
+// +----------------------------------------------------------------------
3
+// | Yzncms [ 御宅男工作室 ]
4
+// +----------------------------------------------------------------------
5
+// | Copyright (c) 2018 http://yzncms.com All rights reserved.
6
+// +----------------------------------------------------------------------
7
+// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
8
+// +----------------------------------------------------------------------
9
+// | Author: 御宅男 <530765310@qq.com>
10
+// +----------------------------------------------------------------------
11
+
12
+// +----------------------------------------------------------------------
13
+// | 测试队列,仅供参考
14
+// +----------------------------------------------------------------------
15
+namespace app\api\queue\jobs;
16
+
17
+use think\facade\Log;
18
+use think\queue\Job;
19
+
20
+class TagHandle
21
+{
22
+
23
+    /**
24
+     * fire方法是消息队列默认调用的方法
25
+     * @param Job            $job      当前的任务对象
26
+     * @param array|mixed    $data     发布任务时自定义的数据
27
+     */
28
+    public function fire(Job $job, $data)
29
+    {
30
+        $isJobDone = $this->doHelloJob($data);
31
+        if ($isJobDone) {
32
+            // 如果任务执行成功, 记得删除任务
33
+            $job->delete();
34
+            print("<info>Hello Job has been done and deleted" . "</info>\n");
35
+        } else {
36
+            //超过3次删除任务 如果不删除 并且命令行附带--tries参数,则会执行failed方法
37
+            if ($job->attempts() > 3) {
38
+                $job->delete();
39
+                print("<warn>Hello Job has been retried more than 3 times!" . "</warn>\n");
40
+            } else {
41
+                //5秒后从新放入队列
42
+                $job->release(5);
43
+            }
44
+        }
45
+    }
46
+
47
+    //多任务A 在发布任务时,需要用 push('任务的类名@方法名')
48
+    public function taskA(Job $job, $data)
49
+    {
50
+        $isJobDone = $this->_doTaskA($data);
51
+        if ($isJobDone) {
52
+            $job->delete();
53
+            print("Info: TaskA of Job MultiTask has been done and deleted" . "\n");
54
+        } else {
55
+            if ($job->attempts() > 3) {
56
+                $job->delete();
57
+            }
58
+        }
59
+    }
60
+
61
+    //多任务B 在发布任务时,需要用 push('任务的类名@方法名')
62
+    public function taskB(Job $job, $data)
63
+    {
64
+        $isJobDone = $this->_doTaskA($data);
65
+        if ($isJobDone) {
66
+            $job->delete();
67
+            print("Info: TaskB of Job MultiTask has been done and deleted" . "\n");
68
+        } else {
69
+            if ($job->attempts() > 2) {
70
+                $job->release();
71
+            }
72
+        }
73
+    }
74
+
75
+    /**
76
+     * 根据消息中的数据进行实际的业务处理...
77
+     */
78
+    private function doHelloJob($data)
79
+    {
80
+/*        print("<info>Hello Job Started. job Data is: " . var_export($data, true) . "</info> \n");
81
+        print("<info>Hello Job is Fired at " . date('Y-m-d H:i:s') . "</info> \n");
82
+        print("<info>Hello Job is Done!" . "</info> \n");*/
83
+
84
+        /*
85
+         * "data": {
86
+            "ts": 1713866309,
87
+            "url": "http:\/\/console.zx2049.com\/api\/cms\/tagHandle",
88
+            "taskid": 10,
89
+            "area_id": 1,
90
+            "area_name": "\u5e7f\u4e1c"
91
+          },
92
+         */
93
+
94
+        //测试
95
+        print("<info>执行标签处理: " . $data['area_id'] . "</info> \n");
96
+
97
+        /*//拼装url
98
+        $url = $data['url'].'?taskid='.$data['taskid'].'&diqu='.$data['area_id'];
99
+        //发送执行
100
+        $content = file_get_contents($url);
101
+        echo $content;*/
102
+
103
+        return true;
104
+    }
105
+
106
+    private function _doTaskA($data)
107
+    {
108
+        print("Info: doing TaskA of Job MultiTask " . "\n");
109
+        return true;
110
+    }
111
+
112
+    private function _doTaskB($data)
113
+    {
114
+        print("Info: doing TaskB of Job MultiTask " . "\n");
115
+        return true;
116
+    }
117
+
118
+    //此函数可以省略 通常用于定义通知管理员队列失败
119
+    //任务最终失败回调 命令行的 --tries 参数的值大于0生效
120
+    public function failed($jobData)
121
+    {
122
+        Log::error("Warning: Job failed after max retries. job data is :" . var_export($jobData, true));
123
+    }
124
+}

+ 21
- 0
vendor/carbonphp/carbon-doctrine-types/LICENSE View File

@@ -0,0 +1,21 @@
1
+MIT License
2
+
3
+Copyright (c) 2023 Carbon
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining a copy
6
+of this software and associated documentation files (the "Software"), to deal
7
+in the Software without restriction, including without limitation the rights
8
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+copies of the Software, and to permit persons to whom the Software is
10
+furnished to do so, subject to the following conditions:
11
+
12
+The above copyright notice and this permission notice shall be included in all
13
+copies or substantial portions of the Software.
14
+
15
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+SOFTWARE.

+ 14
- 0
vendor/carbonphp/carbon-doctrine-types/README.md View File

@@ -0,0 +1,14 @@
1
+# carbonphp/carbon-doctrine-types
2
+
3
+Types to use Carbon in Doctrine
4
+
5
+## Documentation
6
+
7
+[Check how to use in the official Carbon documentation](https://carbon.nesbot.com/symfony/)
8
+
9
+This package is an externalization of [src/Carbon/Doctrine](https://github.com/briannesbitt/Carbon/tree/2.71.0/src/Carbon/Doctrine)
10
+from `nestbot/carbon` package.
11
+
12
+Externalization allows to better deal with different versions of dbal. With
13
+version 4.0 of dbal, it no longer sustainable to be compatible with all version
14
+using a single code.

+ 36
- 0
vendor/carbonphp/carbon-doctrine-types/composer.json View File

@@ -0,0 +1,36 @@
1
+{
2
+    "name": "carbonphp/carbon-doctrine-types",
3
+    "description": "Types to use Carbon in Doctrine",
4
+    "type": "library",
5
+    "keywords": [
6
+        "date",
7
+        "time",
8
+        "DateTime",
9
+        "Carbon",
10
+        "Doctrine"
11
+    ],
12
+    "require": {
13
+        "php": "^7.4 || ^8.0"
14
+    },
15
+    "require-dev": {
16
+        "doctrine/dbal": "^3.7.0",
17
+        "nesbot/carbon": "^2.71.0 || ^3.0.0",
18
+        "phpunit/phpunit": "^10.3"
19
+    },
20
+    "conflict": {
21
+        "doctrine/dbal": "<3.7.0 || >=4.0.0"
22
+    },
23
+    "license": "MIT",
24
+    "autoload": {
25
+        "psr-4": {
26
+            "Carbon\\Doctrine\\": "src/Carbon/Doctrine/"
27
+        }
28
+    },
29
+    "authors": [
30
+        {
31
+            "name": "KyleKatarn",
32
+            "email": "kylekatarnls@gmail.com"
33
+        }
34
+    ],
35
+    "minimum-stability": "dev"
36
+}

+ 14
- 0
vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonDoctrineType.php View File

@@ -0,0 +1,14 @@
1
+<?php
2
+
3
+namespace Carbon\Doctrine;
4
+
5
+use Doctrine\DBAL\Platforms\AbstractPlatform;
6
+
7
+interface CarbonDoctrineType
8
+{
9
+    public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform);
10
+
11
+    public function convertToPHPValue($value, AbstractPlatform $platform);
12
+
13
+    public function convertToDatabaseValue($value, AbstractPlatform $platform);
14
+}

+ 7
- 0
vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonImmutableType.php View File

@@ -0,0 +1,7 @@
1
+<?php
2
+
3
+namespace Carbon\Doctrine;
4
+
5
+class CarbonImmutableType extends DateTimeImmutableType implements CarbonDoctrineType
6
+{
7
+}

+ 7
- 0
vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonType.php View File

@@ -0,0 +1,7 @@
1
+<?php
2
+
3
+namespace Carbon\Doctrine;
4
+
5
+class CarbonType extends DateTimeType implements CarbonDoctrineType
6
+{
7
+}

+ 141
- 0
vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/CarbonTypeConverter.php View File

@@ -0,0 +1,141 @@
1
+<?php
2
+
3
+namespace Carbon\Doctrine;
4
+
5
+use Carbon\Carbon;
6
+use Carbon\CarbonInterface;
7
+use DateTimeInterface;
8
+use Doctrine\DBAL\Platforms\AbstractPlatform;
9
+use Doctrine\DBAL\Platforms\DB2Platform;
10
+use Doctrine\DBAL\Platforms\OraclePlatform;
11
+use Doctrine\DBAL\Platforms\SqlitePlatform;
12
+use Doctrine\DBAL\Platforms\SQLServerPlatform;
13
+use Doctrine\DBAL\Types\ConversionException;
14
+use Exception;
15
+
16
+/**
17
+ * @template T of CarbonInterface
18
+ */
19
+trait CarbonTypeConverter
20
+{
21
+    /**
22
+     * This property differentiates types installed by carbonphp/carbon-doctrine-types
23
+     * from the ones embedded previously in nesbot/carbon source directly.
24
+     *
25
+     * @readonly
26
+     */
27
+    public bool $external = true;
28
+
29
+    /**
30
+     * @return class-string<T>
31
+     */
32
+    protected function getCarbonClassName(): string
33
+    {
34
+        return Carbon::class;
35
+    }
36
+
37
+    public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string
38
+    {
39
+        $precision = min(
40
+            $fieldDeclaration['precision'] ?? DateTimeDefaultPrecision::get(),
41
+            $this->getMaximumPrecision($platform),
42
+        );
43
+
44
+        $type = parent::getSQLDeclaration($fieldDeclaration, $platform);
45
+
46
+        if (!$precision) {
47
+            return $type;
48
+        }
49
+
50
+        if (str_contains($type, '(')) {
51
+            return preg_replace('/\(\d+\)/', "($precision)", $type);
52
+        }
53
+
54
+        [$before, $after] = explode(' ', "$type ");
55
+
56
+        return trim("$before($precision) $after");
57
+    }
58
+
59
+    /**
60
+     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
61
+     *
62
+     * @return T|null
63
+     */
64
+    public function convertToPHPValue($value, AbstractPlatform $platform)
65
+    {
66
+        $class = $this->getCarbonClassName();
67
+
68
+        if ($value === null || is_a($value, $class)) {
69
+            return $value;
70
+        }
71
+
72
+        if ($value instanceof DateTimeInterface) {
73
+            return $class::instance($value);
74
+        }
75
+
76
+        $date = null;
77
+        $error = null;
78
+
79
+        try {
80
+            $date = $class::parse($value);
81
+        } catch (Exception $exception) {
82
+            $error = $exception;
83
+        }
84
+
85
+        if (!$date) {
86
+            throw ConversionException::conversionFailedFormat(
87
+                $value,
88
+                $this->getTypeName(),
89
+                'Y-m-d H:i:s.u or any format supported by '.$class.'::parse()',
90
+                $error
91
+            );
92
+        }
93
+
94
+        return $date;
95
+    }
96
+
97
+    /**
98
+     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
99
+     */
100
+    public function convertToDatabaseValue($value, AbstractPlatform $platform): ?string
101
+    {
102
+        if ($value === null) {
103
+            return $value;
104
+        }
105
+
106
+        if ($value instanceof DateTimeInterface) {
107
+            return $value->format('Y-m-d H:i:s.u');
108
+        }
109
+
110
+        throw ConversionException::conversionFailedInvalidType(
111
+            $value,
112
+            $this->getTypeName(),
113
+            ['null', 'DateTime', 'Carbon']
114
+        );
115
+    }
116
+
117
+    private function getTypeName(): string
118
+    {
119
+        $chunks = explode('\\', static::class);
120
+        $type = preg_replace('/Type$/', '', end($chunks));
121
+
122
+        return strtolower(preg_replace('/([a-z])([A-Z])/', '$1_$2', $type));
123
+    }
124
+
125
+    private function getMaximumPrecision(AbstractPlatform $platform): int
126
+    {
127
+        if ($platform instanceof DB2Platform) {
128
+            return 12;
129
+        }
130
+
131
+        if ($platform instanceof OraclePlatform) {
132
+            return 9;
133
+        }
134
+
135
+        if ($platform instanceof SQLServerPlatform || $platform instanceof SqlitePlatform) {
136
+            return 3;
137
+        }
138
+
139
+        return 6;
140
+    }
141
+}

+ 28
- 0
vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeDefaultPrecision.php View File

@@ -0,0 +1,28 @@
1
+<?php
2
+
3
+namespace Carbon\Doctrine;
4
+
5
+class DateTimeDefaultPrecision
6
+{
7
+    private static $precision = 6;
8
+
9
+    /**
10
+     * Change the default Doctrine datetime and datetime_immutable precision.
11
+     *
12
+     * @param int $precision
13
+     */
14
+    public static function set(int $precision): void
15
+    {
16
+        self::$precision = $precision;
17
+    }
18
+
19
+    /**
20
+     * Get the default Doctrine datetime and datetime_immutable precision.
21
+     *
22
+     * @return int
23
+     */
24
+    public static function get(): int
25
+    {
26
+        return self::$precision;
27
+    }
28
+}

+ 20
- 0
vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeImmutableType.php View File

@@ -0,0 +1,20 @@
1
+<?php
2
+
3
+namespace Carbon\Doctrine;
4
+
5
+use Carbon\CarbonImmutable;
6
+use Doctrine\DBAL\Types\VarDateTimeImmutableType;
7
+
8
+class DateTimeImmutableType extends VarDateTimeImmutableType implements CarbonDoctrineType
9
+{
10
+    /** @use CarbonTypeConverter<CarbonImmutable> */
11
+    use CarbonTypeConverter;
12
+
13
+    /**
14
+     * @return class-string<CarbonImmutable>
15
+     */
16
+    protected function getCarbonClassName(): string
17
+    {
18
+        return CarbonImmutable::class;
19
+    }
20
+}

+ 12
- 0
vendor/carbonphp/carbon-doctrine-types/src/Carbon/Doctrine/DateTimeType.php View File

@@ -0,0 +1,12 @@
1
+<?php
2
+
3
+namespace Carbon\Doctrine;
4
+
5
+use Carbon\Carbon;
6
+use Doctrine\DBAL\Types\VarDateTimeType;
7
+
8
+class DateTimeType extends VarDateTimeType implements CarbonDoctrineType
9
+{
10
+    /** @use CarbonTypeConverter<Carbon> */
11
+    use CarbonTypeConverter;
12
+}

+ 11
- 0
vendor/myclabs/php-enum/stubs/Stringable.php View File

@@ -0,0 +1,11 @@
1
+<?php
2
+
3
+if (\PHP_VERSION_ID < 80000 && !interface_exists('Stringable')) {
4
+    interface Stringable
5
+    {
6
+        /**
7
+         * @return string
8
+         */
9
+        public function __toString();
10
+    }
11
+}

+ 10
- 0
vendor/nesbot/carbon/.phpstorm.meta.php View File

@@ -0,0 +1,10 @@
1
+<?php
2
+namespace PHPSTORM_META {
3
+    registerArgumentsSet("date_units", "millenania", "millennium", "century", "centuries", "decade", "decades", "year", "years", "y", "yr", "yrs", "quarter", "quarters", "month", "months", "mo", "mos", "week", "weeks", "w", "day", "days", "d", "hour", "hours", "h", "minute", "minutes", "m", "second", "seconds", "s", "millisecond", "milliseconds", "milli", "ms", "microsecond", "microseconds", "micro", "µs");
4
+    expectedArguments(\Carbon\Traits\Units::add(), 0, argumentsSet("date_units"));
5
+    expectedArguments(\Carbon\Traits\Units::add(), 1, argumentsSet("date_units"));
6
+    expectedArguments(\Carbon\CarbonInterface::add(), 0, argumentsSet("date_units"));
7
+    expectedArguments(\Carbon\CarbonInterface::add(), 1, argumentsSet("date_units"));
8
+
9
+    expectedArguments(\Carbon\CarbonInterface::getTimeFormatByPrecision(), 0, "minute", "second", "m", "millisecond", "µ", "microsecond", "minutes", "seconds", "ms", "milliseconds", "µs", "microseconds");
10
+}

+ 19
- 0
vendor/nesbot/carbon/LICENSE View File

@@ -0,0 +1,19 @@
1
+Copyright (C) Brian Nesbitt
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is furnished
8
+to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in all
11
+copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+THE SOFTWARE.

+ 23
- 0
vendor/nesbot/carbon/bin/carbon View File

@@ -0,0 +1,23 @@
1
+#!/usr/bin/env php
2
+<?php
3
+
4
+use Carbon\Cli\Invoker;
5
+
6
+$dir = __DIR__.'/..';
7
+
8
+if (!file_exists($dir.'/autoload.php')) {
9
+    $dir = __DIR__.'/../vendor';
10
+}
11
+
12
+if (!file_exists($dir.'/autoload.php')) {
13
+    $dir = __DIR__.'/../../..';
14
+}
15
+
16
+if (!file_exists($dir.'/autoload.php')) {
17
+    echo 'Autoload not found.';
18
+    exit(1);
19
+}
20
+
21
+require $dir.'/autoload.php';
22
+
23
+exit((new Invoker())(...$argv) ? 0 : 1);

+ 4
- 0
vendor/nesbot/carbon/bin/carbon.bat View File

@@ -0,0 +1,4 @@
1
+@ECHO OFF
2
+setlocal DISABLEDELAYEDEXPANSION
3
+SET BIN_TARGET=%~dp0/carbon
4
+php "%BIN_TARGET%" %*

+ 127
- 0
vendor/nesbot/carbon/composer.json View File

@@ -0,0 +1,127 @@
1
+{
2
+    "name": "nesbot/carbon",
3
+    "description": "An API extension for DateTime that supports 281 different languages.",
4
+    "license": "MIT",
5
+    "type": "library",
6
+    "keywords": [
7
+        "date",
8
+        "time",
9
+        "DateTime"
10
+    ],
11
+    "authors": [
12
+        {
13
+            "name": "Brian Nesbitt",
14
+            "email": "brian@nesbot.com",
15
+            "homepage": "https://markido.com"
16
+        },
17
+        {
18
+            "name": "kylekatarnls",
19
+            "homepage": "https://github.com/kylekatarnls"
20
+        }
21
+    ],
22
+    "homepage": "https://carbon.nesbot.com",
23
+    "support": {
24
+        "issues": "https://github.com/briannesbitt/Carbon/issues",
25
+        "source": "https://github.com/briannesbitt/Carbon",
26
+        "docs": "https://carbon.nesbot.com/docs"
27
+    },
28
+    "funding": [
29
+        {
30
+            "url": "https://github.com/sponsors/kylekatarnls",
31
+            "type": "github"
32
+        },
33
+        {
34
+            "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme",
35
+            "type": "tidelift"
36
+        },
37
+        {
38
+            "url": "https://opencollective.com/Carbon#sponsor",
39
+            "type": "opencollective"
40
+        }
41
+    ],
42
+    "require": {
43
+        "php": "^7.1.8 || ^8.0",
44
+        "ext-json": "*",
45
+        "carbonphp/carbon-doctrine-types": "*",
46
+        "psr/clock": "^1.0",
47
+        "symfony/polyfill-mbstring": "^1.0",
48
+        "symfony/polyfill-php80": "^1.16",
49
+        "symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0"
50
+    },
51
+    "require-dev": {
52
+        "doctrine/dbal": "^2.0 || ^3.1.4 || ^4.0",
53
+        "doctrine/orm": "^2.7 || ^3.0",
54
+        "friendsofphp/php-cs-fixer": "^3.0",
55
+        "kylekatarnls/multi-tester": "^2.0",
56
+        "ondrejmirtes/better-reflection": "*",
57
+        "phpmd/phpmd": "^2.9",
58
+        "phpstan/extension-installer": "^1.0",
59
+        "phpstan/phpstan": "^0.12.99 || ^1.7.14",
60
+        "phpunit/php-file-iterator": "^2.0.5 || ^3.0.6",
61
+        "phpunit/phpunit": "^7.5.20 || ^8.5.26 || ^9.5.20",
62
+        "squizlabs/php_codesniffer": "^3.4"
63
+    },
64
+    "provide": {
65
+        "psr/clock-implementation": "1.0"
66
+    },
67
+    "minimum-stability": "dev",
68
+    "prefer-stable": true,
69
+    "autoload": {
70
+        "psr-4": {
71
+            "Carbon\\": "src/Carbon/"
72
+        }
73
+    },
74
+    "autoload-dev": {
75
+        "psr-4": {
76
+            "Tests\\": "tests/"
77
+        },
78
+        "files": [
79
+            "tests/Laravel/ServiceProvider.php"
80
+        ]
81
+    },
82
+    "bin": [
83
+        "bin/carbon"
84
+    ],
85
+    "config": {
86
+        "allow-plugins": {
87
+            "phpstan/extension-installer": true,
88
+            "composer/package-versions-deprecated": true
89
+        },
90
+        "process-timeout": 0,
91
+        "sort-packages": true
92
+    },
93
+    "extra": {
94
+        "branch-alias": {
95
+            "dev-3.x": "3.x-dev",
96
+            "dev-master": "2.x-dev"
97
+        },
98
+        "laravel": {
99
+            "providers": [
100
+                "Carbon\\Laravel\\ServiceProvider"
101
+            ]
102
+        },
103
+        "phpstan": {
104
+            "includes": [
105
+                "extension.neon"
106
+            ]
107
+        }
108
+    },
109
+    "scripts": {
110
+        "phpcs": "php-cs-fixer fix -v --diff --dry-run",
111
+        "phpdoc": "php phpdoc.php",
112
+        "phpmd": "phpmd src text /phpmd.xml",
113
+        "phpmd-test": "phpmd tests text /tests/phpmd-test.xml",
114
+        "phpstan": "phpstan analyse --configuration phpstan.neon",
115
+        "phpunit": "phpunit --verbose",
116
+        "style-check": [
117
+            "@phpcs",
118
+            "@phpstan",
119
+            "@phpmd"
120
+        ],
121
+        "test": [
122
+            "@phpunit",
123
+            "@style-check"
124
+        ],
125
+        "sponsors": "php sponsors.php"
126
+    }
127
+}

+ 5
- 0
vendor/nesbot/carbon/extension.neon View File

@@ -0,0 +1,5 @@
1
+services:
2
+    -
3
+        class: Carbon\PHPStan\MacroExtension
4
+        tags:
5
+            - phpstan.broker.methodsClassReflectionExtension

+ 28
- 0
vendor/nesbot/carbon/lazy/Carbon/MessageFormatter/MessageFormatterMapperStrongType.php View File

@@ -0,0 +1,28 @@
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
+
12
+namespace Carbon\MessageFormatter;
13
+
14
+use Symfony\Component\Translation\Formatter\MessageFormatterInterface;
15
+
16
+if (!class_exists(LazyMessageFormatter::class, false)) {
17
+    abstract class LazyMessageFormatter implements MessageFormatterInterface
18
+    {
19
+        public function format(string $message, string $locale, array $parameters = []): string
20
+        {
21
+            return $this->formatter->format(
22
+                $message,
23
+                $this->transformLocale($locale),
24
+                $parameters
25
+            );
26
+        }
27
+    }
28
+}

+ 36
- 0
vendor/nesbot/carbon/lazy/Carbon/MessageFormatter/MessageFormatterMapperWeakType.php View File

@@ -0,0 +1,36 @@
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
+
12
+namespace Carbon\MessageFormatter;
13
+
14
+use Symfony\Component\Translation\Formatter\ChoiceMessageFormatterInterface;
15
+use Symfony\Component\Translation\Formatter\MessageFormatterInterface;
16
+
17
+if (!class_exists(LazyMessageFormatter::class, false)) {
18
+    abstract class LazyMessageFormatter implements MessageFormatterInterface, ChoiceMessageFormatterInterface
19
+    {
20
+        abstract protected function transformLocale(?string $locale): ?string;
21
+
22
+        public function format($message, $locale, array $parameters = [])
23
+        {
24
+            return $this->formatter->format(
25
+                $message,
26
+                $this->transformLocale($locale),
27
+                $parameters
28
+            );
29
+        }
30
+
31
+        public function choiceFormat($message, $number, $locale, array $parameters = [])
32
+        {
33
+            return $this->formatter->choiceFormat($message, $number, $locale, $parameters);
34
+        }
35
+    }
36
+}

+ 36
- 0
vendor/nesbot/carbon/lazy/Carbon/PHPStan/AbstractMacroBuiltin.php View File

@@ -0,0 +1,36 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
+
5
+/**
6
+ * This file is part of the Carbon package.
7
+ *
8
+ * (c) Brian Nesbitt <brian@nesbot.com>
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\PHPStan;
15
+
16
+use PHPStan\BetterReflection\Reflection;
17
+use ReflectionMethod;
18
+
19
+if (!class_exists(AbstractReflectionMacro::class, false)) {
20
+    abstract class AbstractReflectionMacro extends AbstractMacro
21
+    {
22
+        /**
23
+         * {@inheritdoc}
24
+         */
25
+        public function getReflection(): ?ReflectionMethod
26
+        {
27
+            if ($this->reflectionFunction instanceof Reflection\ReflectionMethod) {
28
+                return new Reflection\Adapter\ReflectionMethod($this->reflectionFunction);
29
+            }
30
+
31
+            return $this->reflectionFunction instanceof ReflectionMethod
32
+                ? $this->reflectionFunction
33
+                : null;
34
+        }
35
+    }
36
+}

+ 45
- 0
vendor/nesbot/carbon/lazy/Carbon/PHPStan/AbstractMacroStatic.php View File

@@ -0,0 +1,45 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
+
5
+/**
6
+ * This file is part of the Carbon package.
7
+ *
8
+ * (c) Brian Nesbitt <brian@nesbot.com>
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\PHPStan;
15
+
16
+use PHPStan\BetterReflection\Reflection;
17
+use ReflectionMethod;
18
+
19
+if (!class_exists(AbstractReflectionMacro::class, false)) {
20
+    abstract class AbstractReflectionMacro extends AbstractMacro
21
+    {
22
+        /**
23
+         * {@inheritdoc}
24
+         */
25
+        public function getReflection(): ?Reflection\Adapter\ReflectionMethod
26
+        {
27
+            if ($this->reflectionFunction instanceof Reflection\Adapter\ReflectionMethod) {
28
+                return $this->reflectionFunction;
29
+            }
30
+
31
+            if ($this->reflectionFunction instanceof Reflection\ReflectionMethod) {
32
+                return new Reflection\Adapter\ReflectionMethod($this->reflectionFunction);
33
+            }
34
+
35
+            return $this->reflectionFunction instanceof ReflectionMethod
36
+                ? new Reflection\Adapter\ReflectionMethod(
37
+                    Reflection\ReflectionMethod::createFromName(
38
+                        $this->reflectionFunction->getDeclaringClass()->getName(),
39
+                        $this->reflectionFunction->getName()
40
+                    )
41
+                )
42
+                : null;
43
+        }
44
+    }
45
+}

+ 45
- 0
vendor/nesbot/carbon/lazy/Carbon/PHPStan/MacroStrongType.php View File

@@ -0,0 +1,45 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
+
5
+/**
6
+ * This file is part of the Carbon package.
7
+ *
8
+ * (c) Brian Nesbitt <brian@nesbot.com>
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\PHPStan;
15
+
16
+if (!class_exists(LazyMacro::class, false)) {
17
+    abstract class LazyMacro extends AbstractReflectionMacro
18
+    {
19
+        /**
20
+         * {@inheritdoc}
21
+         */
22
+        public function getFileName(): ?string
23
+        {
24
+            $file = $this->reflectionFunction->getFileName();
25
+
26
+            return (($file ? realpath($file) : null) ?: $file) ?: null;
27
+        }
28
+
29
+        /**
30
+         * {@inheritdoc}
31
+         */
32
+        public function getStartLine(): ?int
33
+        {
34
+            return $this->reflectionFunction->getStartLine();
35
+        }
36
+
37
+        /**
38
+         * {@inheritdoc}
39
+         */
40
+        public function getEndLine(): ?int
41
+        {
42
+            return $this->reflectionFunction->getEndLine();
43
+        }
44
+    }
45
+}

+ 51
- 0
vendor/nesbot/carbon/lazy/Carbon/PHPStan/MacroWeakType.php View File

@@ -0,0 +1,51 @@
1
+<?php
2
+
3
+declare(strict_types=1);
4
+
5
+/**
6
+ * This file is part of the Carbon package.
7
+ *
8
+ * (c) Brian Nesbitt <brian@nesbot.com>
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\PHPStan;
15
+
16
+if (!class_exists(LazyMacro::class, false)) {
17
+    abstract class LazyMacro extends AbstractReflectionMacro
18
+    {
19
+        /**
20
+         * {@inheritdoc}
21
+         *
22
+         * @return string|false
23
+         */
24
+        public function getFileName()
25
+        {
26
+            $file = $this->reflectionFunction->getFileName();
27
+
28
+            return (($file ? realpath($file) : null) ?: $file) ?: null;
29
+        }
30
+
31
+        /**
32
+         * {@inheritdoc}
33
+         *
34
+         * @return int|false
35
+         */
36
+        public function getStartLine()
37
+        {
38
+            return $this->reflectionFunction->getStartLine();
39
+        }
40
+
41
+        /**
42
+         * {@inheritdoc}
43
+         *
44
+         * @return int|false
45
+         */
46
+        public function getEndLine()
47
+        {
48
+            return $this->reflectionFunction->getEndLine();
49
+        }
50
+    }
51
+}

+ 52
- 0
vendor/nesbot/carbon/lazy/Carbon/TranslatorStrongType.php View File

@@ -0,0 +1,52 @@
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
+
12
+namespace Carbon;
13
+
14
+use Symfony\Component\Translation\MessageCatalogueInterface;
15
+
16
+if (!class_exists(LazyTranslator::class, false)) {
17
+    class LazyTranslator extends AbstractTranslator implements TranslatorStrongTypeInterface
18
+    {
19
+        public function trans(?string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string
20
+        {
21
+            return $this->translate($id, $parameters, $domain, $locale);
22
+        }
23
+
24
+        public function getFromCatalogue(MessageCatalogueInterface $catalogue, string $id, string $domain = 'messages')
25
+        {
26
+            $messages = $this->getPrivateProperty($catalogue, 'messages');
27
+
28
+            if (isset($messages[$domain.MessageCatalogueInterface::INTL_DOMAIN_SUFFIX][$id])) {
29
+                return $messages[$domain.MessageCatalogueInterface::INTL_DOMAIN_SUFFIX][$id];
30
+            }
31
+
32
+            if (isset($messages[$domain][$id])) {
33
+                return $messages[$domain][$id];
34
+            }
35
+
36
+            $fallbackCatalogue = $this->getPrivateProperty($catalogue, 'fallbackCatalogue');
37
+
38
+            if ($fallbackCatalogue !== null) {
39
+                return $this->getFromCatalogue($fallbackCatalogue, $id, $domain);
40
+            }
41
+
42
+            return $id;
43
+        }
44
+
45
+        private function getPrivateProperty($instance, string $field)
46
+        {
47
+            return (function (string $field) {
48
+                return $this->$field;
49
+            })->call($instance, $field);
50
+        }
51
+    }
52
+}

+ 32
- 0
vendor/nesbot/carbon/lazy/Carbon/TranslatorWeakType.php View File

@@ -0,0 +1,32 @@
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
+
12
+namespace Carbon;
13
+
14
+if (!class_exists(LazyTranslator::class, false)) {
15
+    class LazyTranslator extends AbstractTranslator
16
+    {
17
+        /**
18
+         * Returns the translation.
19
+         *
20
+         * @param string|null $id
21
+         * @param array       $parameters
22
+         * @param string|null $domain
23
+         * @param string|null $locale
24
+         *
25
+         * @return string
26
+         */
27
+        public function trans($id, array $parameters = [], $domain = null, $locale = null)
28
+        {
29
+            return $this->translate($id, $parameters, $domain, $locale);
30
+        }
31
+    }
32
+}

+ 175
- 0
vendor/nesbot/carbon/readme.md View File

@@ -0,0 +1,175 @@
1
+# Carbon
2
+
3
+[![Latest Stable Version](https://img.shields.io/packagist/v/nesbot/carbon.svg?style=flat-square)](https://packagist.org/packages/nesbot/carbon)
4
+[![Total Downloads](https://img.shields.io/packagist/dt/nesbot/carbon.svg?style=flat-square)](https://packagist.org/packages/nesbot/carbon)
5
+[![GitHub Actions](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fbriannesbitt%2FCarbon%2Fbadge&style=flat-square&label=Build&logo=none)](https://github.com/briannesbitt/Carbon/actions)
6
+[![codecov.io](https://img.shields.io/codecov/c/github/briannesbitt/Carbon.svg?style=flat-square)](https://codecov.io/github/briannesbitt/Carbon?branch=master)
7
+[![Tidelift](https://tidelift.com/badges/github/briannesbitt/Carbon)](https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme)
8
+
9
+An international PHP extension for DateTime. [https://carbon.nesbot.com](https://carbon.nesbot.com)
10
+
11
+```php
12
+<?php
13
+
14
+use Carbon\Carbon;
15
+
16
+printf("Right now is %s", Carbon::now()->toDateTimeString());
17
+printf("Right now in Vancouver is %s", Carbon::now('America/Vancouver'));  //implicit __toString()
18
+$tomorrow = Carbon::now()->addDay();
19
+$lastWeek = Carbon::now()->subWeek();
20
+$nextSummerOlympics = Carbon::createFromDate(2016)->addYears(4);
21
+
22
+$officialDate = Carbon::now()->toRfc2822String();
23
+
24
+$howOldAmI = Carbon::createFromDate(1975, 5, 21)->age;
25
+
26
+$noonTodayLondonTime = Carbon::createFromTime(12, 0, 0, 'Europe/London');
27
+
28
+$internetWillBlowUpOn = Carbon::create(2038, 01, 19, 3, 14, 7, 'GMT');
29
+
30
+// Don't really want this to happen so mock now
31
+Carbon::setTestNow(Carbon::createFromDate(2000, 1, 1));
32
+
33
+// comparisons are always done in UTC
34
+if (Carbon::now()->gte($internetWillBlowUpOn)) {
35
+    die();
36
+}
37
+
38
+// Phew! Return to normal behaviour
39
+Carbon::setTestNow();
40
+
41
+if (Carbon::now()->isWeekend()) {
42
+    echo 'Party!';
43
+}
44
+// Over 200 languages (and over 500 regional variants) supported:
45
+echo Carbon::now()->subMinutes(2)->diffForHumans(); // '2 minutes ago'
46
+echo Carbon::now()->subMinutes(2)->locale('zh_CN')->diffForHumans(); // '2分钟前'
47
+echo Carbon::parse('2019-07-23 14:51')->isoFormat('LLLL'); // 'Tuesday, July 23, 2019 2:51 PM'
48
+echo Carbon::parse('2019-07-23 14:51')->locale('fr_FR')->isoFormat('LLLL'); // 'mardi 23 juillet 2019 14:51'
49
+
50
+// ... but also does 'from now', 'after' and 'before'
51
+// rolling up to seconds, minutes, hours, days, months, years
52
+
53
+$daysSinceEpoch = Carbon::createFromTimestamp(0)->diffInDays();
54
+```
55
+
56
+[Get supported nesbot/carbon with the Tidelift Subscription](https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme)
57
+
58
+## Installation
59
+
60
+### With Composer
61
+
62
+```
63
+$ composer require nesbot/carbon
64
+```
65
+
66
+```json
67
+{
68
+    "require": {
69
+        "nesbot/carbon": "^2.16"
70
+    }
71
+}
72
+```
73
+
74
+```php
75
+<?php
76
+require 'vendor/autoload.php';
77
+
78
+use Carbon\Carbon;
79
+
80
+printf("Now: %s", Carbon::now());
81
+```
82
+
83
+### Without Composer
84
+
85
+Why are you not using [composer](https://getcomposer.org/)? Download the Carbon [latest release](https://github.com/briannesbitt/Carbon/releases) and put the contents of the ZIP archive into a directory in your project. Then require the file `autoload.php` to get all classes and dependencies loaded on need.
86
+
87
+```php
88
+<?php
89
+require 'path-to-Carbon-directory/autoload.php';
90
+
91
+use Carbon\Carbon;
92
+
93
+printf("Now: %s", Carbon::now());
94
+```
95
+
96
+## Docs
97
+
98
+[https://carbon.nesbot.com/docs](https://carbon.nesbot.com/docs)
99
+
100
+## Security contact information
101
+
102
+To report a security vulnerability, please use the
103
+[Tidelift security contact](https://tidelift.com/security).
104
+Tidelift will coordinate the fix and disclosure.
105
+
106
+## Credits
107
+
108
+### Contributors
109
+
110
+This project exists thanks to all the people who contribute. 
111
+
112
+<a href="https://github.com/briannesbitt/Carbon/graphs/contributors" target="_blank"><img src="https://opencollective.com/Carbon/contributors.svg?width=890&button=false" /></a>
113
+
114
+### Translators
115
+
116
+[Thanks to people helping us to translate Carbon in so many languages](https://carbon.nesbot.com/contribute/translators/)
117
+
118
+### Sponsors
119
+
120
+Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
121
+
122
+<a href="https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme" target="_blank"><img src="https://carbon.nesbot.com/tidelift-brand.png" width="256" height="64"></a><!-- <open-collective-sponsors> -->
123
+<a title="Онлайн казино 777 Україна" href="https://777.ua/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Онлайн казино" src="https://opencollective-production.s3.us-west-1.amazonaws.com/account-avatar/7e572d50-1ce8-4d69-ae12-86cc80371373/ok-ua-777.png" width="64" height="64"></a>
124
+<a title="#1 Guide To Online Gambling In Canada" href="https://casinohex.org/canada/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="CasinoHex Canada" src="https://opencollective-production.s3.us-west-1.amazonaws.com/79fdbcc0-a997-11eb-abbc-25e48b63c6dc.jpg" width="85" height="64"></a>
125
+<a title="Znajdź najlepsze zakłady bukmacherskie w Polsce w 2023 roku. Probukmacher.pl to Twoje kompendium wiedzy na temat bukmacherów!" href="https://www.probukmacher.pl?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Probukmacher" src="https://opencollective-production.s3.us-west-1.amazonaws.com/account-avatar/caf50271-4560-4ffe-a434-ea15239168db/Screenshot_1.png" width="89" height="64"></a>
126
+<a title="Gives a fun for our users" href="https://slotoking.ua/games/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Игровые автоматы" src="https://opencollective-production.s3.us-west-1.amazonaws.com/account-avatar/94601d07-3205-4c60-9c2d-9b8194dbefb7/skg-blue.png" width="64" height="64"></a>
127
+<a title="Casino-portugal.pt" href="https://casino-portugal.pt/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Casino-portugal.pt" src="https://logo.clearbit.com/casino-portugal.pt" width="64" height="64"></a>
128
+<a title="Slots City® ➢ Лучшее лицензионно казино онлайн и оффлайн на гривны в Украине. 【 Более1500 игровых автоматов и слотов】✅ Официально и Безопасно" href="https://slotscity.ua/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Slots City" src="https://opencollective-production.s3.us-west-1.amazonaws.com/d7e298c0-7abe-11ed-8553-230872f5e54d.png" width="90" height="64"></a>
129
+<a title="inkedin" href="https://inkedin.com?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="inkedin" src="https://logo.clearbit.com/inkedin.com" width="64" height="64"></a>
130
+<a title="Актуальний та повносправний рейтинг онлайн казино України, ґрунтований на відгуках реальних гравців." href="https://uk.onlinecasino.in.ua/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Онлайн казино України" src="https://opencollective-production.s3.us-west-1.amazonaws.com/c0b4b090-eef8-11ec-9cb7-0527a205b226.png" width="64" height="64"></a>
131
+<a title="OnlineCasinosSpelen" href="https://onlinecasinosspelen.com?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="OnlineCasinosSpelen" src="https://logo.clearbit.com/onlinecasinosspelen.com" width="64" height="64"></a>
132
+<a title="Best non Gamstop sites in the UK" href="https://nongamstopcasinos.net/gb/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Best non Gamstop sites in the UK" src="https://opencollective-production.s3.us-west-1.amazonaws.com/account-avatar/34e340b8-e1de-4932-8a76-1b3ce2ec7ee8/logo_white%20bg%20(8).png" width="64" height="64"></a>
133
+<a title="Real Money Pokies" href="https://www.nzfirst.org.nz/real-money-pokies/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Real Money Pokies" src="https://opencollective-production.s3.us-west-1.amazonaws.com/account-avatar/30d38232-a9d6-4e95-a48c-641fdc4d96fd/NZ_logo%20(6)%20(1)%20(1).jpg" width="64" height="64"></a>
134
+<a title="Non GamStop Bookies UK" href="https://nongamstopbookies.com/uk/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Non GamStop Bookies UK" src="https://opencollective-production.s3.us-west-1.amazonaws.com/account-avatar/43c5561c-8907-4ef7-a4ee-c6da054788b8/logo-site%20(3).jpg" width="64" height="64"></a>
135
+<a title="Актуальний топ-рейтинг українських онлайн казино на гривні! Щоденне оновлення топу та унікальна система ранжування, основана на відгуках гравців!" href="https://onlinecasino.in.ua/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Онлайн Казино Украины" src="https://opencollective-production.s3.us-west-1.amazonaws.com/8fdd8aa0-e273-11ec-a95e-d38fd331cabf.png" width="64" height="64"></a>
136
+<a title="Twitter Video Downloader HD Tool allows you to store tweets on your device (mobile or PC) for free." href="https://ssstwitter.online/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="SSSTwitter" src="https://opencollective-production.s3.us-west-1.amazonaws.com/account-avatar/ba0d1daf-a894-4d98-95f7-a44d321364b3/Screenshot%202024-01-16%20at%2011.43.22.png" width="76" height="64"></a>
137
+<a title="Entertainment" href="https://www.nongamstopbets.com/casinos-not-on-gamstop/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Non-GamStop Bets UK" src="https://logo.clearbit.com/nongamstopbets.com" width="64" height="64"></a>
138
+<a title="Chudovo - international software development company with representative offices in Kyiv, Cologne, New York, Tallinn and London. It has been working on the market since 2006. Company has domain expertise in video security, logistics, medicine, finance and" href="https://chudovo.com/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Chudovo" src="https://opencollective-production.s3.us-west-1.amazonaws.com/326c19a0-2e87-11eb-a13a-c99a2a201d11.png" width="84" height="42"></a>
139
+<a title="Entertainment" href="https://casinogap.org/uk/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="UK Casino Gap" src="https://opencollective-production.s3.us-west-1.amazonaws.com/account-avatar/143f9301-beec-4118-89d5-9a07a01345f3/casinogap-uk.png" width="42" height="42"></a>
140
+<a title="NZ Gaming Portal" href="https://casinodeps.co.nz?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="NZ Casino Deps" src="https://logo.clearbit.com/casinodeps.co.nz" width="42" height="42"></a>
141
+<a title="NonStop Sites" href="https://uk.nonstopcasino.org/non-gamstop-casinos/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="NonStopCasino.org" src="https://opencollective-production.s3.us-west-1.amazonaws.com/account-avatar/fd7ad905-8752-468f-ad20-582a24cca9d9/non-stop-casino.png" width="42" height="42"></a>
142
+<a title="Siti Non AAMS" href="https://www.outlookindia.com/outlook-spotlight/migliori-siti-non-aams-siti-scommesse-senza-licenza-sicuri-news-294715?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Migliori Siti Non AAMS" src="https://opencollective-production.s3.us-west-1.amazonaws.com/account-avatar/392810da-6cb6-4938-a3cb-38bd0e1eb7de/migliori-siti-non-aams.png" width="42" height="42"></a>
143
+<a title="List of trusted non GamStop casino reviews" href="https://nongamstopcasinos.org?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="UK NonGamStopCasinos" src="https://opencollective-production.s3.us-west-1.amazonaws.com/account-avatar/cbda0ee1-26ea-4252-9580-f1f9b317b1f7/nongamstopcasinos-uk.png" width="42" height="42"></a>
144
+<a title="Online TikTok Video Download Tool" href="https://snaptik.pro?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="SnapTik" src="https://opencollective-production.s3.us-west-1.amazonaws.com/account-avatar/546bcd53-6615-457d-ab21-1db1c52b3af5/logo.jpg" width="42" height="42"></a>
145
+<a title="IG Downloader is an Instagram Downloader service that offers a variety of tools to download Instagram content for free. Listed below are all the tools" href="https://indownloader.app/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="IG Downloader" src="https://logo.clearbit.com/indownloader.app" width="42" height="42"></a>
146
+<a title="Proxidize is a mobile proxy creation and management platform that provides all needed components from hardware to cloud software and SIM cards." href="https://proxidize.com/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Proxidize" src="https://logo.clearbit.com/proxidize.com" width="42" height="42"></a>
147
+<a title="Blastup offers Instagram growth services like buying likes, views, and followers, emphasizing real user engagement and instant delivery." href="https://blastup.com/buy-instagram-likes?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Blastup" src="https://opencollective-production.s3.us-west-1.amazonaws.com/account-avatar/955a0beb-9fe8-4753-ad92-fae8ef5382fc/favicon--dark.jpg" width="42" height="42"></a>
148
+<a title="A self-hosted web radio management suite, including turnkey installer tools and an easy-to-use web app to manage your stations." href="https://azuracast.com?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="AzuraCast" src="https://opencollective-production.s3.us-west-1.amazonaws.com/3c12ea10-cdfb-11eb-9cf4-3760b386b76d.png" width="42" height="42"></a>
149
+<a title="Triplebyte is the first software engineering job platform that is on the developer&#039;s side. Take our coding quiz!" href="https://triplebyte.com/os/opencollective?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Triplebyte" src="https://opencollective-production.s3.us-west-1.amazonaws.com/43e4f9d0-30cd-11ea-9c6b-e1142996e8b2.png" width="42" height="42"></a>
150
+<a title="Connect your Collective to GitHub Sponsors: https://docs.opencollective.com/help/collectives/github-sponsors" href="https://github.com/sponsors/?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="GitHub Sponsors" src="https://opencollective-production.s3.us-west-1.amazonaws.com/87b1d240-f617-11ea-9960-fd7e8ab20fe4.png" width="48" height="42"></a>
151
+<a title="Salesforce" href="https://engineering.salesforce.com?utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon" target="_blank"><img alt="Salesforce" src="https://opencollective-production.s3.us-west-1.amazonaws.com/24d34880-df8d-11e9-949c-6bc2037b6bd5.png" width="42" height="42"></a>
152
+<!-- </open-collective-sponsors> -->
153
+
154
+[[Become a sponsor via OpenCollective](https://opencollective.com/Carbon#sponsor)]
155
+
156
+<a href="https://github.com/johnrsimeone" target="_blank"><img src="https://avatars.githubusercontent.com/u/22871068?s=70&v=4" width="64" height="64"></a>
157
+<a href="https://github.com/taylorotwell" target="_blank"><img src="https://avatars.githubusercontent.com/u/463230?s=128&v=4" width="64" height="64"></a>
158
+<a href="https://github.com/getsentry" target="_blank"><img src="https://avatars.githubusercontent.com/u/1396951?s=128&v=4" width="64" height="64"></a>
159
+<a href="https://github.com/codecov" target="_blank"><img src="https://avatars.githubusercontent.com/u/8226205?s=128&v=4" width="64" height="64"></a>
160
+
161
+[[Become a sponsor via GitHub](https://github.com/sponsors/kylekatarnls)]
162
+
163
+### Backers
164
+
165
+Thank you to all our backers! 🙏
166
+
167
+<a href="https://opencollective.com/Carbon#backers" target="_blank"><img src="https://opencollective.com/Carbon/backers.svg?width=890&version=2023-06-08-07-12"></a>
168
+
169
+[[Become a backer](https://opencollective.com/Carbon#backer)]
170
+
171
+## Carbon for enterprise
172
+
173
+Available as part of the Tidelift Subscription.
174
+
175
+The maintainers of ``Carbon`` and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=enterprise&utm_term=repo)

+ 129
- 0
vendor/nesbot/carbon/sponsors.php View File

@@ -0,0 +1,129 @@
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
+
12
+use Carbon\CarbonImmutable;
13
+
14
+require_once __DIR__.'/vendor/autoload.php';
15
+
16
+function getMaxHistoryMonthsByAmount($amount): int
17
+{
18
+    if ($amount >= 50) {
19
+        return 6;
20
+    }
21
+
22
+    if ($amount >= 20) {
23
+        return 4;
24
+    }
25
+
26
+    return 2;
27
+}
28
+
29
+function getHtmlAttribute($rawValue): string
30
+{
31
+    return str_replace(
32
+        ['​', "\r"],
33
+        '',
34
+        trim(htmlspecialchars((string) $rawValue), "  \n\r\t\v\0"),
35
+    );
36
+}
37
+
38
+function getOpenCollectiveSponsors(): string
39
+{
40
+    $customSponsorImages = [
41
+        // For consistency and equity among sponsors, as of now, we kindly ask our sponsors
42
+        // to provide an image having a width/height ratio between 1/1 and 2/1.
43
+        // By default, we'll show the member picture from OpenCollective, and will resize it if bigger
44
+        // int(OpenCollective.MemberId) => ImageURL
45
+    ];
46
+
47
+    $members = json_decode(file_get_contents('https://opencollective.com/carbon/members/all.json'), true);
48
+
49
+    $list = array_filter($members, static function ($member): bool {
50
+        return ($member['lastTransactionAmount'] > 3 || $member['isActive']) &&
51
+            $member['role'] === 'BACKER' &&
52
+            $member['type'] !== 'USER' &&
53
+            (
54
+                $member['totalAmountDonated'] > 100 ||
55
+                $member['lastTransactionAt'] > CarbonImmutable::now()
56
+                    ->subMonthsNoOverflow(getMaxHistoryMonthsByAmount($member['lastTransactionAmount']))
57
+                    ->format('Y-m-d h:i') ||
58
+                $member['isActive'] && $member['lastTransactionAmount'] >= 30
59
+            );
60
+    });
61
+
62
+    $list = array_map(static function (array $member): array {
63
+        $createdAt = CarbonImmutable::parse($member['createdAt']);
64
+        $lastTransactionAt = CarbonImmutable::parse($member['lastTransactionAt']);
65
+
66
+        if ($createdAt->format('d H:i:s.u') > $lastTransactionAt->format('d H:i:s.u')) {
67
+            $createdAt = $createdAt
68
+                ->setDay($lastTransactionAt->day)
69
+                ->modify($lastTransactionAt->format('H:i:s.u'));
70
+        }
71
+
72
+        $monthlyContribution = (float) ($member['totalAmountDonated'] / ceil($createdAt->floatDiffInMonths()));
73
+
74
+        if (
75
+            $lastTransactionAt->isAfter('last month') &&
76
+            $member['lastTransactionAmount'] > $monthlyContribution
77
+        ) {
78
+            $monthlyContribution = (float) $member['lastTransactionAmount'];
79
+        }
80
+
81
+        $yearlyContribution = (float) ($member['totalAmountDonated'] / max(1, $createdAt->floatDiffInYears()));
82
+        $status = null;
83
+
84
+        if ($monthlyContribution > 29) {
85
+            $status = 'sponsor';
86
+        } elseif ($monthlyContribution > 4.5 || $yearlyContribution > 29) {
87
+            $status = 'backer';
88
+        } elseif ($member['totalAmountDonated'] > 0) {
89
+            $status = 'helper';
90
+        }
91
+
92
+        return array_merge($member, [
93
+            'star' => ($monthlyContribution > 98 || $yearlyContribution > 500),
94
+            'status' => $status,
95
+            'monthlyContribution' => $monthlyContribution,
96
+            'yearlyContribution' => $yearlyContribution,
97
+        ]);
98
+    }, $list);
99
+
100
+    usort($list, static function (array $a, array $b): int {
101
+        return ($b['monthlyContribution'] <=> $a['monthlyContribution'])
102
+            ?: ($b['totalAmountDonated'] <=> $a['totalAmountDonated']);
103
+    });
104
+
105
+    return implode('', array_map(static function (array $member) use ($customSponsorImages): string {
106
+        $href = htmlspecialchars($member['website'] ?? $member['profile']);
107
+        $src = $customSponsorImages[$member['MemberId'] ?? ''] ?? $member['image'] ?? (strtr($member['profile'], ['https://opencollective.com/' => 'https://images.opencollective.com/']).'/avatar/256.png');
108
+        [$x, $y] = @getimagesize($src) ?: [0, 0];
109
+        $validImage = ($x && $y);
110
+        $src = $validImage ? htmlspecialchars($src) : 'https://opencollective.com/static/images/default-guest-logo.svg';
111
+        $height = $member['status'] === 'sponsor' ? 64 : 42;
112
+        $width = min($height * 2, $validImage ? round($x * $height / $y) : $height);
113
+        $href .= (strpos($href, '?') === false ? '?' : '&amp;').'utm_source=opencollective&amp;utm_medium=github&amp;utm_campaign=Carbon';
114
+        $title = getHtmlAttribute(($member['description'] ?? null) ?: $member['name']);
115
+        $alt = getHtmlAttribute($member['name']);
116
+
117
+        return "\n".'<a title="'.$title.'" href="'.$href.'" target="_blank">'.
118
+            '<img alt="'.$alt.'" src="'.$src.'" width="'.$width.'" height="'.$height.'">'.
119
+            '</a>';
120
+    }, $list))."\n";
121
+}
122
+
123
+file_put_contents('readme.md', preg_replace_callback(
124
+    '/(<!-- <open-collective-sponsors> -->)[\s\S]+(<!-- <\/open-collective-sponsors> -->)/',
125
+    static function (array $match): string {
126
+        return $match[1].getOpenCollectiveSponsors().$match[2];
127
+    },
128
+    file_get_contents('readme.md')
129
+));

+ 398
- 0
vendor/nesbot/carbon/src/Carbon/AbstractTranslator.php View File

@@ -0,0 +1,398 @@
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
+
12
+namespace Carbon;
13
+
14
+use Carbon\MessageFormatter\MessageFormatterMapper;
15
+use Closure;
16
+use ReflectionException;
17
+use ReflectionFunction;
18
+use Symfony\Component\Translation;
19
+use Symfony\Component\Translation\Formatter\MessageFormatterInterface;
20
+use Symfony\Component\Translation\Loader\ArrayLoader;
21
+
22
+abstract class AbstractTranslator extends Translation\Translator
23
+{
24
+    /**
25
+     * Translator singletons for each language.
26
+     *
27
+     * @var array
28
+     */
29
+    protected static $singletons = [];
30
+
31
+    /**
32
+     * List of custom localized messages.
33
+     *
34
+     * @var array
35
+     */
36
+    protected $messages = [];
37
+
38
+    /**
39
+     * List of custom directories that contain translation files.
40
+     *
41
+     * @var string[]
42
+     */
43
+    protected $directories = [];
44
+
45
+    /**
46
+     * Set to true while constructing.
47
+     *
48
+     * @var bool
49
+     */
50
+    protected $initializing = false;
51
+
52
+    /**
53
+     * List of locales aliases.
54
+     *
55
+     * @var array<string, string>
56
+     */
57
+    protected $aliases = [
58
+        'me' => 'sr_Latn_ME',
59
+        'scr' => 'sh',
60
+    ];
61
+
62
+    /**
63
+     * Return a singleton instance of Translator.
64
+     *
65
+     * @param string|null $locale optional initial locale ("en" - english by default)
66
+     *
67
+     * @return static
68
+     */
69
+    public static function get($locale = null)
70
+    {
71
+        $locale = $locale ?: 'en';
72
+        $key = static::class === Translator::class ? $locale : static::class.'|'.$locale;
73
+
74
+        if (!isset(static::$singletons[$key])) {
75
+            static::$singletons[$key] = new static($locale);
76
+        }
77
+
78
+        return static::$singletons[$key];
79
+    }
80
+
81
+    public function __construct($locale, MessageFormatterInterface $formatter = null, $cacheDir = null, $debug = false)
82
+    {
83
+        parent::setLocale($locale);
84
+        $this->initializing = true;
85
+        $this->directories = [__DIR__.'/Lang'];
86
+        $this->addLoader('array', new ArrayLoader());
87
+        parent::__construct($locale, new MessageFormatterMapper($formatter), $cacheDir, $debug);
88
+        $this->initializing = false;
89
+    }
90
+
91
+    /**
92
+     * Returns the list of directories translation files are searched in.
93
+     *
94
+     * @return array
95
+     */
96
+    public function getDirectories(): array
97
+    {
98
+        return $this->directories;
99
+    }
100
+
101
+    /**
102
+     * Set list of directories translation files are searched in.
103
+     *
104
+     * @param array $directories new directories list
105
+     *
106
+     * @return $this
107
+     */
108
+    public function setDirectories(array $directories)
109
+    {
110
+        $this->directories = $directories;
111
+
112
+        return $this;
113
+    }
114
+
115
+    /**
116
+     * Add a directory to the list translation files are searched in.
117
+     *
118
+     * @param string $directory new directory
119
+     *
120
+     * @return $this
121
+     */
122
+    public function addDirectory(string $directory)
123
+    {
124
+        $this->directories[] = $directory;
125
+
126
+        return $this;
127
+    }
128
+
129
+    /**
130
+     * Remove a directory from the list translation files are searched in.
131
+     *
132
+     * @param string $directory directory path
133
+     *
134
+     * @return $this
135
+     */
136
+    public function removeDirectory(string $directory)
137
+    {
138
+        $search = rtrim(strtr($directory, '\\', '/'), '/');
139
+
140
+        return $this->setDirectories(array_filter($this->getDirectories(), function ($item) use ($search) {
141
+            return rtrim(strtr($item, '\\', '/'), '/') !== $search;
142
+        }));
143
+    }
144
+
145
+    /**
146
+     * Reset messages of a locale (all locale if no locale passed).
147
+     * Remove custom messages and reload initial messages from matching
148
+     * file in Lang directory.
149
+     *
150
+     * @param string|null $locale
151
+     *
152
+     * @return bool
153
+     */
154
+    public function resetMessages($locale = null)
155
+    {
156
+        if ($locale === null) {
157
+            $this->messages = [];
158
+
159
+            return true;
160
+        }
161
+
162
+        foreach ($this->getDirectories() as $directory) {
163
+            $data = @include sprintf('%s/%s.php', rtrim($directory, '\\/'), $locale);
164
+
165
+            if ($data !== false) {
166
+                $this->messages[$locale] = $data;
167
+                $this->addResource('array', $this->messages[$locale], $locale);
168
+
169
+                return true;
170
+            }
171
+        }
172
+
173
+        return false;
174
+    }
175
+
176
+    /**
177
+     * Returns the list of files matching a given locale prefix (or all if empty).
178
+     *
179
+     * @param string $prefix prefix required to filter result
180
+     *
181
+     * @return array
182
+     */
183
+    public function getLocalesFiles($prefix = '')
184
+    {
185
+        $files = [];
186
+
187
+        foreach ($this->getDirectories() as $directory) {
188
+            $directory = rtrim($directory, '\\/');
189
+
190
+            foreach (glob("$directory/$prefix*.php") as $file) {
191
+                $files[] = $file;
192
+            }
193
+        }
194
+
195
+        return array_unique($files);
196
+    }
197
+
198
+    /**
199
+     * Returns the list of internally available locales and already loaded custom locales.
200
+     * (It will ignore custom translator dynamic loading.)
201
+     *
202
+     * @param string $prefix prefix required to filter result
203
+     *
204
+     * @return array
205
+     */
206
+    public function getAvailableLocales($prefix = '')
207
+    {
208
+        $locales = [];
209
+        foreach ($this->getLocalesFiles($prefix) as $file) {
210
+            $locales[] = substr($file, strrpos($file, '/') + 1, -4);
211
+        }
212
+
213
+        return array_unique(array_merge($locales, array_keys($this->messages)));
214
+    }
215
+
216
+    protected function translate(?string $id, array $parameters = [], ?string $domain = null, ?string $locale = null): string
217
+    {
218
+        if ($domain === null) {
219
+            $domain = 'messages';
220
+        }
221
+
222
+        $catalogue = $this->getCatalogue($locale);
223
+        $format = $this instanceof TranslatorStrongTypeInterface
224
+            ? $this->getFromCatalogue($catalogue, (string) $id, $domain)
225
+            : $this->getCatalogue($locale)->get((string) $id, $domain); // @codeCoverageIgnore
226
+
227
+        if ($format instanceof Closure) {
228
+            // @codeCoverageIgnoreStart
229
+            try {
230
+                $count = (new ReflectionFunction($format))->getNumberOfRequiredParameters();
231
+            } catch (ReflectionException $exception) {
232
+                $count = 0;
233
+            }
234
+            // @codeCoverageIgnoreEnd
235
+
236
+            return $format(
237
+                ...array_values($parameters),
238
+                ...array_fill(0, max(0, $count - \count($parameters)), null)
239
+            );
240
+        }
241
+
242
+        return parent::trans($id, $parameters, $domain, $locale);
243
+    }
244
+
245
+    /**
246
+     * Init messages language from matching file in Lang directory.
247
+     *
248
+     * @param string $locale
249
+     *
250
+     * @return bool
251
+     */
252
+    protected function loadMessagesFromFile($locale)
253
+    {
254
+        return isset($this->messages[$locale]) || $this->resetMessages($locale);
255
+    }
256
+
257
+    /**
258
+     * Set messages of a locale and take file first if present.
259
+     *
260
+     * @param string $locale
261
+     * @param array  $messages
262
+     *
263
+     * @return $this
264
+     */
265
+    public function setMessages($locale, $messages)
266
+    {
267
+        $this->loadMessagesFromFile($locale);
268
+        $this->addResource('array', $messages, $locale);
269
+        $this->messages[$locale] = array_merge(
270
+            $this->messages[$locale] ?? [],
271
+            $messages
272
+        );
273
+
274
+        return $this;
275
+    }
276
+
277
+    /**
278
+     * Set messages of the current locale and take file first if present.
279
+     *
280
+     * @param array $messages
281
+     *
282
+     * @return $this
283
+     */
284
+    public function setTranslations($messages)
285
+    {
286
+        return $this->setMessages($this->getLocale(), $messages);
287
+    }
288
+
289
+    /**
290
+     * Get messages of a locale, if none given, return all the
291
+     * languages.
292
+     *
293
+     * @param string|null $locale
294
+     *
295
+     * @return array
296
+     */
297
+    public function getMessages($locale = null)
298
+    {
299
+        return $locale === null ? $this->messages : $this->messages[$locale];
300
+    }
301
+
302
+    /**
303
+     * Set the current translator locale and indicate if the source locale file exists
304
+     *
305
+     * @param string $locale locale ex. en
306
+     *
307
+     * @return bool
308
+     */
309
+    public function setLocale($locale)
310
+    {
311
+        $locale = preg_replace_callback('/[-_]([a-z]{2,}|\d{2,})/', function ($matches) {
312
+            // _2-letters or YUE is a region, _3+-letters is a variant
313
+            $upper = strtoupper($matches[1]);
314
+
315
+            if ($upper === 'YUE' || $upper === 'ISO' || \strlen($upper) < 3) {
316
+                return "_$upper";
317
+            }
318
+
319
+            return '_'.ucfirst($matches[1]);
320
+        }, strtolower($locale));
321
+
322
+        $previousLocale = $this->getLocale();
323
+
324
+        if ($previousLocale === $locale && isset($this->messages[$locale])) {
325
+            return true;
326
+        }
327
+
328
+        unset(static::$singletons[$previousLocale]);
329
+
330
+        if ($locale === 'auto') {
331
+            $completeLocale = setlocale(LC_TIME, '0');
332
+            $locale = preg_replace('/^([^_.-]+).*$/', '$1', $completeLocale);
333
+            $locales = $this->getAvailableLocales($locale);
334
+
335
+            $completeLocaleChunks = preg_split('/[_.-]+/', $completeLocale);
336
+
337
+            $getScore = function ($language) use ($completeLocaleChunks) {
338
+                return self::compareChunkLists($completeLocaleChunks, preg_split('/[_.-]+/', $language));
339
+            };
340
+
341
+            usort($locales, function ($first, $second) use ($getScore) {
342
+                return $getScore($second) <=> $getScore($first);
343
+            });
344
+
345
+            $locale = $locales[0];
346
+        }
347
+
348
+        if (isset($this->aliases[$locale])) {
349
+            $locale = $this->aliases[$locale];
350
+        }
351
+
352
+        // If subtag (ex: en_CA) first load the macro (ex: en) to have a fallback
353
+        if (str_contains($locale, '_') &&
354
+            $this->loadMessagesFromFile($macroLocale = preg_replace('/^([^_]+).*$/', '$1', $locale))
355
+        ) {
356
+            parent::setLocale($macroLocale);
357
+        }
358
+
359
+        if (!$this->loadMessagesFromFile($locale) && !$this->initializing) {
360
+            return false;
361
+        }
362
+
363
+        parent::setLocale($locale);
364
+
365
+        return true;
366
+    }
367
+
368
+    /**
369
+     * Show locale on var_dump().
370
+     *
371
+     * @return array
372
+     */
373
+    public function __debugInfo()
374
+    {
375
+        return [
376
+            'locale' => $this->getLocale(),
377
+        ];
378
+    }
379
+
380
+    private static function compareChunkLists($referenceChunks, $chunks)
381
+    {
382
+        $score = 0;
383
+
384
+        foreach ($referenceChunks as $index => $chunk) {
385
+            if (!isset($chunks[$index])) {
386
+                $score++;
387
+
388
+                continue;
389
+            }
390
+
391
+            if (strtolower($chunks[$index]) === strtolower($chunk)) {
392
+                $score += 10;
393
+            }
394
+        }
395
+
396
+        return $score;
397
+    }
398
+}

+ 523
- 0
vendor/nesbot/carbon/src/Carbon/Carbon.php View File

@@ -0,0 +1,523 @@
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
+
12
+namespace Carbon;
13
+
14
+use Carbon\Traits\Date;
15
+use Carbon\Traits\DeprecatedProperties;
16
+use DateTime;
17
+use DateTimeInterface;
18
+use DateTimeZone;
19
+
20
+/**
21
+ * A simple API extension for DateTime.
22
+ *
23
+ * @mixin DeprecatedProperties
24
+ *
25
+ * <autodoc generated by `composer phpdoc`>
26
+ *
27
+ * @property      int                 $year
28
+ * @property      int                 $yearIso
29
+ * @property      int                 $month
30
+ * @property      int                 $day
31
+ * @property      int                 $hour
32
+ * @property      int                 $minute
33
+ * @property      int                 $second
34
+ * @property      int                 $micro
35
+ * @property      int                 $microsecond
36
+ * @property      int|float|string    $timestamp                                                                                      seconds since the Unix Epoch
37
+ * @property      string              $englishDayOfWeek                                                                               the day of week in English
38
+ * @property      string              $shortEnglishDayOfWeek                                                                          the abbreviated day of week in English
39
+ * @property      string              $englishMonth                                                                                   the month in English
40
+ * @property      string              $shortEnglishMonth                                                                              the abbreviated month in English
41
+ * @property      int                 $milliseconds
42
+ * @property      int                 $millisecond
43
+ * @property      int                 $milli
44
+ * @property      int                 $week                                                                                           1 through 53
45
+ * @property      int                 $isoWeek                                                                                        1 through 53
46
+ * @property      int                 $weekYear                                                                                       year according to week format
47
+ * @property      int                 $isoWeekYear                                                                                    year according to ISO week format
48
+ * @property      int                 $dayOfYear                                                                                      1 through 366
49
+ * @property      int                 $age                                                                                            does a diffInYears() with default parameters
50
+ * @property      int                 $offset                                                                                         the timezone offset in seconds from UTC
51
+ * @property      int                 $offsetMinutes                                                                                  the timezone offset in minutes from UTC
52
+ * @property      int                 $offsetHours                                                                                    the timezone offset in hours from UTC
53
+ * @property      CarbonTimeZone      $timezone                                                                                       the current timezone
54
+ * @property      CarbonTimeZone      $tz                                                                                             alias of $timezone
55
+ * @property-read int                 $dayOfWeek                                                                                      0 (for Sunday) through 6 (for Saturday)
56
+ * @property-read int                 $dayOfWeekIso                                                                                   1 (for Monday) through 7 (for Sunday)
57
+ * @property-read int                 $weekOfYear                                                                                     ISO-8601 week number of year, weeks starting on Monday
58
+ * @property-read int                 $daysInMonth                                                                                    number of days in the given month
59
+ * @property-read string              $latinMeridiem                                                                                  "am"/"pm" (Ante meridiem or Post meridiem latin lowercase mark)
60
+ * @property-read string              $latinUpperMeridiem                                                                             "AM"/"PM" (Ante meridiem or Post meridiem latin uppercase mark)
61
+ * @property-read string              $timezoneAbbreviatedName                                                                        the current timezone abbreviated name
62
+ * @property-read string              $tzAbbrName                                                                                     alias of $timezoneAbbreviatedName
63
+ * @property-read string              $dayName                                                                                        long name of weekday translated according to Carbon locale, in english if no translation available for current language
64
+ * @property-read string              $shortDayName                                                                                   short name of weekday translated according to Carbon locale, in english if no translation available for current language
65
+ * @property-read string              $minDayName                                                                                     very short name of weekday translated according to Carbon locale, in english if no translation available for current language
66
+ * @property-read string              $monthName                                                                                      long name of month translated according to Carbon locale, in english if no translation available for current language
67
+ * @property-read string              $shortMonthName                                                                                 short name of month translated according to Carbon locale, in english if no translation available for current language
68
+ * @property-read string              $meridiem                                                                                       lowercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language
69
+ * @property-read string              $upperMeridiem                                                                                  uppercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language
70
+ * @property-read int                 $noZeroHour                                                                                     current hour from 1 to 24
71
+ * @property-read int                 $weeksInYear                                                                                    51 through 53
72
+ * @property-read int                 $isoWeeksInYear                                                                                 51 through 53
73
+ * @property-read int                 $weekOfMonth                                                                                    1 through 5
74
+ * @property-read int                 $weekNumberInMonth                                                                              1 through 5
75
+ * @property-read int                 $firstWeekDay                                                                                   0 through 6
76
+ * @property-read int                 $lastWeekDay                                                                                    0 through 6
77
+ * @property-read int                 $daysInYear                                                                                     365 or 366
78
+ * @property-read int                 $quarter                                                                                        the quarter of this instance, 1 - 4
79
+ * @property-read int                 $decade                                                                                         the decade of this instance
80
+ * @property-read int                 $century                                                                                        the century of this instance
81
+ * @property-read int                 $millennium                                                                                     the millennium of this instance
82
+ * @property-read bool                $dst                                                                                            daylight savings time indicator, true if DST, false otherwise
83
+ * @property-read bool                $local                                                                                          checks if the timezone is local, true if local, false otherwise
84
+ * @property-read bool                $utc                                                                                            checks if the timezone is UTC, true if UTC, false otherwise
85
+ * @property-read string              $timezoneName                                                                                   the current timezone name
86
+ * @property-read string              $tzName                                                                                         alias of $timezoneName
87
+ * @property-read string              $locale                                                                                         locale of the current instance
88
+ *
89
+ * @method        bool                isUtc()                                                                                         Check if the current instance has UTC timezone. (Both isUtc and isUTC cases are valid.)
90
+ * @method        bool                isLocal()                                                                                       Check if the current instance has non-UTC timezone.
91
+ * @method        bool                isValid()                                                                                       Check if the current instance is a valid date.
92
+ * @method        bool                isDST()                                                                                         Check if the current instance is in a daylight saving time.
93
+ * @method        bool                isSunday()                                                                                      Checks if the instance day is sunday.
94
+ * @method        bool                isMonday()                                                                                      Checks if the instance day is monday.
95
+ * @method        bool                isTuesday()                                                                                     Checks if the instance day is tuesday.
96
+ * @method        bool                isWednesday()                                                                                   Checks if the instance day is wednesday.
97
+ * @method        bool                isThursday()                                                                                    Checks if the instance day is thursday.
98
+ * @method        bool                isFriday()                                                                                      Checks if the instance day is friday.
99
+ * @method        bool                isSaturday()                                                                                    Checks if the instance day is saturday.
100
+ * @method        bool                isSameYear(Carbon|DateTimeInterface|string|null $date = null)                                   Checks if the given date is in the same year as the instance. If null passed, compare to now (with the same timezone).
101
+ * @method        bool                isCurrentYear()                                                                                 Checks if the instance is in the same year as the current moment.
102
+ * @method        bool                isNextYear()                                                                                    Checks if the instance is in the same year as the current moment next year.
103
+ * @method        bool                isLastYear()                                                                                    Checks if the instance is in the same year as the current moment last year.
104
+ * @method        bool                isSameWeek(Carbon|DateTimeInterface|string|null $date = null)                                   Checks if the given date is in the same week as the instance. If null passed, compare to now (with the same timezone).
105
+ * @method        bool                isCurrentWeek()                                                                                 Checks if the instance is in the same week as the current moment.
106
+ * @method        bool                isNextWeek()                                                                                    Checks if the instance is in the same week as the current moment next week.
107
+ * @method        bool                isLastWeek()                                                                                    Checks if the instance is in the same week as the current moment last week.
108
+ * @method        bool                isSameDay(Carbon|DateTimeInterface|string|null $date = null)                                    Checks if the given date is in the same day as the instance. If null passed, compare to now (with the same timezone).
109
+ * @method        bool                isCurrentDay()                                                                                  Checks if the instance is in the same day as the current moment.
110
+ * @method        bool                isNextDay()                                                                                     Checks if the instance is in the same day as the current moment next day.
111
+ * @method        bool                isLastDay()                                                                                     Checks if the instance is in the same day as the current moment last day.
112
+ * @method        bool                isSameHour(Carbon|DateTimeInterface|string|null $date = null)                                   Checks if the given date is in the same hour as the instance. If null passed, compare to now (with the same timezone).
113
+ * @method        bool                isCurrentHour()                                                                                 Checks if the instance is in the same hour as the current moment.
114
+ * @method        bool                isNextHour()                                                                                    Checks if the instance is in the same hour as the current moment next hour.
115
+ * @method        bool                isLastHour()                                                                                    Checks if the instance is in the same hour as the current moment last hour.
116
+ * @method        bool                isSameMinute(Carbon|DateTimeInterface|string|null $date = null)                                 Checks if the given date is in the same minute as the instance. If null passed, compare to now (with the same timezone).
117
+ * @method        bool                isCurrentMinute()                                                                               Checks if the instance is in the same minute as the current moment.
118
+ * @method        bool                isNextMinute()                                                                                  Checks if the instance is in the same minute as the current moment next minute.
119
+ * @method        bool                isLastMinute()                                                                                  Checks if the instance is in the same minute as the current moment last minute.
120
+ * @method        bool                isSameSecond(Carbon|DateTimeInterface|string|null $date = null)                                 Checks if the given date is in the same second as the instance. If null passed, compare to now (with the same timezone).
121
+ * @method        bool                isCurrentSecond()                                                                               Checks if the instance is in the same second as the current moment.
122
+ * @method        bool                isNextSecond()                                                                                  Checks if the instance is in the same second as the current moment next second.
123
+ * @method        bool                isLastSecond()                                                                                  Checks if the instance is in the same second as the current moment last second.
124
+ * @method        bool                isSameMicro(Carbon|DateTimeInterface|string|null $date = null)                                  Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone).
125
+ * @method        bool                isCurrentMicro()                                                                                Checks if the instance is in the same microsecond as the current moment.
126
+ * @method        bool                isNextMicro()                                                                                   Checks if the instance is in the same microsecond as the current moment next microsecond.
127
+ * @method        bool                isLastMicro()                                                                                   Checks if the instance is in the same microsecond as the current moment last microsecond.
128
+ * @method        bool                isSameMicrosecond(Carbon|DateTimeInterface|string|null $date = null)                            Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone).
129
+ * @method        bool                isCurrentMicrosecond()                                                                          Checks if the instance is in the same microsecond as the current moment.
130
+ * @method        bool                isNextMicrosecond()                                                                             Checks if the instance is in the same microsecond as the current moment next microsecond.
131
+ * @method        bool                isLastMicrosecond()                                                                             Checks if the instance is in the same microsecond as the current moment last microsecond.
132
+ * @method        bool                isCurrentMonth()                                                                                Checks if the instance is in the same month as the current moment.
133
+ * @method        bool                isNextMonth()                                                                                   Checks if the instance is in the same month as the current moment next month.
134
+ * @method        bool                isLastMonth()                                                                                   Checks if the instance is in the same month as the current moment last month.
135
+ * @method        bool                isCurrentQuarter()                                                                              Checks if the instance is in the same quarter as the current moment.
136
+ * @method        bool                isNextQuarter()                                                                                 Checks if the instance is in the same quarter as the current moment next quarter.
137
+ * @method        bool                isLastQuarter()                                                                                 Checks if the instance is in the same quarter as the current moment last quarter.
138
+ * @method        bool                isSameDecade(Carbon|DateTimeInterface|string|null $date = null)                                 Checks if the given date is in the same decade as the instance. If null passed, compare to now (with the same timezone).
139
+ * @method        bool                isCurrentDecade()                                                                               Checks if the instance is in the same decade as the current moment.
140
+ * @method        bool                isNextDecade()                                                                                  Checks if the instance is in the same decade as the current moment next decade.
141
+ * @method        bool                isLastDecade()                                                                                  Checks if the instance is in the same decade as the current moment last decade.
142
+ * @method        bool                isSameCentury(Carbon|DateTimeInterface|string|null $date = null)                                Checks if the given date is in the same century as the instance. If null passed, compare to now (with the same timezone).
143
+ * @method        bool                isCurrentCentury()                                                                              Checks if the instance is in the same century as the current moment.
144
+ * @method        bool                isNextCentury()                                                                                 Checks if the instance is in the same century as the current moment next century.
145
+ * @method        bool                isLastCentury()                                                                                 Checks if the instance is in the same century as the current moment last century.
146
+ * @method        bool                isSameMillennium(Carbon|DateTimeInterface|string|null $date = null)                             Checks if the given date is in the same millennium as the instance. If null passed, compare to now (with the same timezone).
147
+ * @method        bool                isCurrentMillennium()                                                                           Checks if the instance is in the same millennium as the current moment.
148
+ * @method        bool                isNextMillennium()                                                                              Checks if the instance is in the same millennium as the current moment next millennium.
149
+ * @method        bool                isLastMillennium()                                                                              Checks if the instance is in the same millennium as the current moment last millennium.
150
+ * @method        $this               years(int $value)                                                                               Set current instance year to the given value.
151
+ * @method        $this               year(int $value)                                                                                Set current instance year to the given value.
152
+ * @method        $this               setYears(int $value)                                                                            Set current instance year to the given value.
153
+ * @method        $this               setYear(int $value)                                                                             Set current instance year to the given value.
154
+ * @method        $this               months(int $value)                                                                              Set current instance month to the given value.
155
+ * @method        $this               month(int $value)                                                                               Set current instance month to the given value.
156
+ * @method        $this               setMonths(int $value)                                                                           Set current instance month to the given value.
157
+ * @method        $this               setMonth(int $value)                                                                            Set current instance month to the given value.
158
+ * @method        $this               days(int $value)                                                                                Set current instance day to the given value.
159
+ * @method        $this               day(int $value)                                                                                 Set current instance day to the given value.
160
+ * @method        $this               setDays(int $value)                                                                             Set current instance day to the given value.
161
+ * @method        $this               setDay(int $value)                                                                              Set current instance day to the given value.
162
+ * @method        $this               hours(int $value)                                                                               Set current instance hour to the given value.
163
+ * @method        $this               hour(int $value)                                                                                Set current instance hour to the given value.
164
+ * @method        $this               setHours(int $value)                                                                            Set current instance hour to the given value.
165
+ * @method        $this               setHour(int $value)                                                                             Set current instance hour to the given value.
166
+ * @method        $this               minutes(int $value)                                                                             Set current instance minute to the given value.
167
+ * @method        $this               minute(int $value)                                                                              Set current instance minute to the given value.
168
+ * @method        $this               setMinutes(int $value)                                                                          Set current instance minute to the given value.
169
+ * @method        $this               setMinute(int $value)                                                                           Set current instance minute to the given value.
170
+ * @method        $this               seconds(int $value)                                                                             Set current instance second to the given value.
171
+ * @method        $this               second(int $value)                                                                              Set current instance second to the given value.
172
+ * @method        $this               setSeconds(int $value)                                                                          Set current instance second to the given value.
173
+ * @method        $this               setSecond(int $value)                                                                           Set current instance second to the given value.
174
+ * @method        $this               millis(int $value)                                                                              Set current instance millisecond to the given value.
175
+ * @method        $this               milli(int $value)                                                                               Set current instance millisecond to the given value.
176
+ * @method        $this               setMillis(int $value)                                                                           Set current instance millisecond to the given value.
177
+ * @method        $this               setMilli(int $value)                                                                            Set current instance millisecond to the given value.
178
+ * @method        $this               milliseconds(int $value)                                                                        Set current instance millisecond to the given value.
179
+ * @method        $this               millisecond(int $value)                                                                         Set current instance millisecond to the given value.
180
+ * @method        $this               setMilliseconds(int $value)                                                                     Set current instance millisecond to the given value.
181
+ * @method        $this               setMillisecond(int $value)                                                                      Set current instance millisecond to the given value.
182
+ * @method        $this               micros(int $value)                                                                              Set current instance microsecond to the given value.
183
+ * @method        $this               micro(int $value)                                                                               Set current instance microsecond to the given value.
184
+ * @method        $this               setMicros(int $value)                                                                           Set current instance microsecond to the given value.
185
+ * @method        $this               setMicro(int $value)                                                                            Set current instance microsecond to the given value.
186
+ * @method        $this               microseconds(int $value)                                                                        Set current instance microsecond to the given value.
187
+ * @method        $this               microsecond(int $value)                                                                         Set current instance microsecond to the given value.
188
+ * @method        $this               setMicroseconds(int $value)                                                                     Set current instance microsecond to the given value.
189
+ * @method        $this               setMicrosecond(int $value)                                                                      Set current instance microsecond to the given value.
190
+ * @method        $this               addYears(int $value = 1)                                                                        Add years (the $value count passed in) to the instance (using date interval).
191
+ * @method        $this               addYear()                                                                                       Add one year to the instance (using date interval).
192
+ * @method        $this               subYears(int $value = 1)                                                                        Sub years (the $value count passed in) to the instance (using date interval).
193
+ * @method        $this               subYear()                                                                                       Sub one year to the instance (using date interval).
194
+ * @method        $this               addYearsWithOverflow(int $value = 1)                                                            Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
195
+ * @method        $this               addYearWithOverflow()                                                                           Add one year to the instance (using date interval) with overflow explicitly allowed.
196
+ * @method        $this               subYearsWithOverflow(int $value = 1)                                                            Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
197
+ * @method        $this               subYearWithOverflow()                                                                           Sub one year to the instance (using date interval) with overflow explicitly allowed.
198
+ * @method        $this               addYearsWithoutOverflow(int $value = 1)                                                         Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
199
+ * @method        $this               addYearWithoutOverflow()                                                                        Add one year to the instance (using date interval) with overflow explicitly forbidden.
200
+ * @method        $this               subYearsWithoutOverflow(int $value = 1)                                                         Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
201
+ * @method        $this               subYearWithoutOverflow()                                                                        Sub one year to the instance (using date interval) with overflow explicitly forbidden.
202
+ * @method        $this               addYearsWithNoOverflow(int $value = 1)                                                          Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
203
+ * @method        $this               addYearWithNoOverflow()                                                                         Add one year to the instance (using date interval) with overflow explicitly forbidden.
204
+ * @method        $this               subYearsWithNoOverflow(int $value = 1)                                                          Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
205
+ * @method        $this               subYearWithNoOverflow()                                                                         Sub one year to the instance (using date interval) with overflow explicitly forbidden.
206
+ * @method        $this               addYearsNoOverflow(int $value = 1)                                                              Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
207
+ * @method        $this               addYearNoOverflow()                                                                             Add one year to the instance (using date interval) with overflow explicitly forbidden.
208
+ * @method        $this               subYearsNoOverflow(int $value = 1)                                                              Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
209
+ * @method        $this               subYearNoOverflow()                                                                             Sub one year to the instance (using date interval) with overflow explicitly forbidden.
210
+ * @method        $this               addMonths(int $value = 1)                                                                       Add months (the $value count passed in) to the instance (using date interval).
211
+ * @method        $this               addMonth()                                                                                      Add one month to the instance (using date interval).
212
+ * @method        $this               subMonths(int $value = 1)                                                                       Sub months (the $value count passed in) to the instance (using date interval).
213
+ * @method        $this               subMonth()                                                                                      Sub one month to the instance (using date interval).
214
+ * @method        $this               addMonthsWithOverflow(int $value = 1)                                                           Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
215
+ * @method        $this               addMonthWithOverflow()                                                                          Add one month to the instance (using date interval) with overflow explicitly allowed.
216
+ * @method        $this               subMonthsWithOverflow(int $value = 1)                                                           Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
217
+ * @method        $this               subMonthWithOverflow()                                                                          Sub one month to the instance (using date interval) with overflow explicitly allowed.
218
+ * @method        $this               addMonthsWithoutOverflow(int $value = 1)                                                        Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
219
+ * @method        $this               addMonthWithoutOverflow()                                                                       Add one month to the instance (using date interval) with overflow explicitly forbidden.
220
+ * @method        $this               subMonthsWithoutOverflow(int $value = 1)                                                        Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
221
+ * @method        $this               subMonthWithoutOverflow()                                                                       Sub one month to the instance (using date interval) with overflow explicitly forbidden.
222
+ * @method        $this               addMonthsWithNoOverflow(int $value = 1)                                                         Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
223
+ * @method        $this               addMonthWithNoOverflow()                                                                        Add one month to the instance (using date interval) with overflow explicitly forbidden.
224
+ * @method        $this               subMonthsWithNoOverflow(int $value = 1)                                                         Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
225
+ * @method        $this               subMonthWithNoOverflow()                                                                        Sub one month to the instance (using date interval) with overflow explicitly forbidden.
226
+ * @method        $this               addMonthsNoOverflow(int $value = 1)                                                             Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
227
+ * @method        $this               addMonthNoOverflow()                                                                            Add one month to the instance (using date interval) with overflow explicitly forbidden.
228
+ * @method        $this               subMonthsNoOverflow(int $value = 1)                                                             Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
229
+ * @method        $this               subMonthNoOverflow()                                                                            Sub one month to the instance (using date interval) with overflow explicitly forbidden.
230
+ * @method        $this               addDays(int $value = 1)                                                                         Add days (the $value count passed in) to the instance (using date interval).
231
+ * @method        $this               addDay()                                                                                        Add one day to the instance (using date interval).
232
+ * @method        $this               subDays(int $value = 1)                                                                         Sub days (the $value count passed in) to the instance (using date interval).
233
+ * @method        $this               subDay()                                                                                        Sub one day to the instance (using date interval).
234
+ * @method        $this               addHours(int $value = 1)                                                                        Add hours (the $value count passed in) to the instance (using date interval).
235
+ * @method        $this               addHour()                                                                                       Add one hour to the instance (using date interval).
236
+ * @method        $this               subHours(int $value = 1)                                                                        Sub hours (the $value count passed in) to the instance (using date interval).
237
+ * @method        $this               subHour()                                                                                       Sub one hour to the instance (using date interval).
238
+ * @method        $this               addMinutes(int $value = 1)                                                                      Add minutes (the $value count passed in) to the instance (using date interval).
239
+ * @method        $this               addMinute()                                                                                     Add one minute to the instance (using date interval).
240
+ * @method        $this               subMinutes(int $value = 1)                                                                      Sub minutes (the $value count passed in) to the instance (using date interval).
241
+ * @method        $this               subMinute()                                                                                     Sub one minute to the instance (using date interval).
242
+ * @method        $this               addSeconds(int $value = 1)                                                                      Add seconds (the $value count passed in) to the instance (using date interval).
243
+ * @method        $this               addSecond()                                                                                     Add one second to the instance (using date interval).
244
+ * @method        $this               subSeconds(int $value = 1)                                                                      Sub seconds (the $value count passed in) to the instance (using date interval).
245
+ * @method        $this               subSecond()                                                                                     Sub one second to the instance (using date interval).
246
+ * @method        $this               addMillis(int $value = 1)                                                                       Add milliseconds (the $value count passed in) to the instance (using date interval).
247
+ * @method        $this               addMilli()                                                                                      Add one millisecond to the instance (using date interval).
248
+ * @method        $this               subMillis(int $value = 1)                                                                       Sub milliseconds (the $value count passed in) to the instance (using date interval).
249
+ * @method        $this               subMilli()                                                                                      Sub one millisecond to the instance (using date interval).
250
+ * @method        $this               addMilliseconds(int $value = 1)                                                                 Add milliseconds (the $value count passed in) to the instance (using date interval).
251
+ * @method        $this               addMillisecond()                                                                                Add one millisecond to the instance (using date interval).
252
+ * @method        $this               subMilliseconds(int $value = 1)                                                                 Sub milliseconds (the $value count passed in) to the instance (using date interval).
253
+ * @method        $this               subMillisecond()                                                                                Sub one millisecond to the instance (using date interval).
254
+ * @method        $this               addMicros(int $value = 1)                                                                       Add microseconds (the $value count passed in) to the instance (using date interval).
255
+ * @method        $this               addMicro()                                                                                      Add one microsecond to the instance (using date interval).
256
+ * @method        $this               subMicros(int $value = 1)                                                                       Sub microseconds (the $value count passed in) to the instance (using date interval).
257
+ * @method        $this               subMicro()                                                                                      Sub one microsecond to the instance (using date interval).
258
+ * @method        $this               addMicroseconds(int $value = 1)                                                                 Add microseconds (the $value count passed in) to the instance (using date interval).
259
+ * @method        $this               addMicrosecond()                                                                                Add one microsecond to the instance (using date interval).
260
+ * @method        $this               subMicroseconds(int $value = 1)                                                                 Sub microseconds (the $value count passed in) to the instance (using date interval).
261
+ * @method        $this               subMicrosecond()                                                                                Sub one microsecond to the instance (using date interval).
262
+ * @method        $this               addMillennia(int $value = 1)                                                                    Add millennia (the $value count passed in) to the instance (using date interval).
263
+ * @method        $this               addMillennium()                                                                                 Add one millennium to the instance (using date interval).
264
+ * @method        $this               subMillennia(int $value = 1)                                                                    Sub millennia (the $value count passed in) to the instance (using date interval).
265
+ * @method        $this               subMillennium()                                                                                 Sub one millennium to the instance (using date interval).
266
+ * @method        $this               addMillenniaWithOverflow(int $value = 1)                                                        Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
267
+ * @method        $this               addMillenniumWithOverflow()                                                                     Add one millennium to the instance (using date interval) with overflow explicitly allowed.
268
+ * @method        $this               subMillenniaWithOverflow(int $value = 1)                                                        Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
269
+ * @method        $this               subMillenniumWithOverflow()                                                                     Sub one millennium to the instance (using date interval) with overflow explicitly allowed.
270
+ * @method        $this               addMillenniaWithoutOverflow(int $value = 1)                                                     Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
271
+ * @method        $this               addMillenniumWithoutOverflow()                                                                  Add one millennium to the instance (using date interval) with overflow explicitly forbidden.
272
+ * @method        $this               subMillenniaWithoutOverflow(int $value = 1)                                                     Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
273
+ * @method        $this               subMillenniumWithoutOverflow()                                                                  Sub one millennium to the instance (using date interval) with overflow explicitly forbidden.
274
+ * @method        $this               addMillenniaWithNoOverflow(int $value = 1)                                                      Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
275
+ * @method        $this               addMillenniumWithNoOverflow()                                                                   Add one millennium to the instance (using date interval) with overflow explicitly forbidden.
276
+ * @method        $this               subMillenniaWithNoOverflow(int $value = 1)                                                      Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
277
+ * @method        $this               subMillenniumWithNoOverflow()                                                                   Sub one millennium to the instance (using date interval) with overflow explicitly forbidden.
278
+ * @method        $this               addMillenniaNoOverflow(int $value = 1)                                                          Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
279
+ * @method        $this               addMillenniumNoOverflow()                                                                       Add one millennium to the instance (using date interval) with overflow explicitly forbidden.
280
+ * @method        $this               subMillenniaNoOverflow(int $value = 1)                                                          Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
281
+ * @method        $this               subMillenniumNoOverflow()                                                                       Sub one millennium to the instance (using date interval) with overflow explicitly forbidden.
282
+ * @method        $this               addCenturies(int $value = 1)                                                                    Add centuries (the $value count passed in) to the instance (using date interval).
283
+ * @method        $this               addCentury()                                                                                    Add one century to the instance (using date interval).
284
+ * @method        $this               subCenturies(int $value = 1)                                                                    Sub centuries (the $value count passed in) to the instance (using date interval).
285
+ * @method        $this               subCentury()                                                                                    Sub one century to the instance (using date interval).
286
+ * @method        $this               addCenturiesWithOverflow(int $value = 1)                                                        Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
287
+ * @method        $this               addCenturyWithOverflow()                                                                        Add one century to the instance (using date interval) with overflow explicitly allowed.
288
+ * @method        $this               subCenturiesWithOverflow(int $value = 1)                                                        Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
289
+ * @method        $this               subCenturyWithOverflow()                                                                        Sub one century to the instance (using date interval) with overflow explicitly allowed.
290
+ * @method        $this               addCenturiesWithoutOverflow(int $value = 1)                                                     Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
291
+ * @method        $this               addCenturyWithoutOverflow()                                                                     Add one century to the instance (using date interval) with overflow explicitly forbidden.
292
+ * @method        $this               subCenturiesWithoutOverflow(int $value = 1)                                                     Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
293
+ * @method        $this               subCenturyWithoutOverflow()                                                                     Sub one century to the instance (using date interval) with overflow explicitly forbidden.
294
+ * @method        $this               addCenturiesWithNoOverflow(int $value = 1)                                                      Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
295
+ * @method        $this               addCenturyWithNoOverflow()                                                                      Add one century to the instance (using date interval) with overflow explicitly forbidden.
296
+ * @method        $this               subCenturiesWithNoOverflow(int $value = 1)                                                      Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
297
+ * @method        $this               subCenturyWithNoOverflow()                                                                      Sub one century to the instance (using date interval) with overflow explicitly forbidden.
298
+ * @method        $this               addCenturiesNoOverflow(int $value = 1)                                                          Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
299
+ * @method        $this               addCenturyNoOverflow()                                                                          Add one century to the instance (using date interval) with overflow explicitly forbidden.
300
+ * @method        $this               subCenturiesNoOverflow(int $value = 1)                                                          Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
301
+ * @method        $this               subCenturyNoOverflow()                                                                          Sub one century to the instance (using date interval) with overflow explicitly forbidden.
302
+ * @method        $this               addDecades(int $value = 1)                                                                      Add decades (the $value count passed in) to the instance (using date interval).
303
+ * @method        $this               addDecade()                                                                                     Add one decade to the instance (using date interval).
304
+ * @method        $this               subDecades(int $value = 1)                                                                      Sub decades (the $value count passed in) to the instance (using date interval).
305
+ * @method        $this               subDecade()                                                                                     Sub one decade to the instance (using date interval).
306
+ * @method        $this               addDecadesWithOverflow(int $value = 1)                                                          Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
307
+ * @method        $this               addDecadeWithOverflow()                                                                         Add one decade to the instance (using date interval) with overflow explicitly allowed.
308
+ * @method        $this               subDecadesWithOverflow(int $value = 1)                                                          Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
309
+ * @method        $this               subDecadeWithOverflow()                                                                         Sub one decade to the instance (using date interval) with overflow explicitly allowed.
310
+ * @method        $this               addDecadesWithoutOverflow(int $value = 1)                                                       Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
311
+ * @method        $this               addDecadeWithoutOverflow()                                                                      Add one decade to the instance (using date interval) with overflow explicitly forbidden.
312
+ * @method        $this               subDecadesWithoutOverflow(int $value = 1)                                                       Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
313
+ * @method        $this               subDecadeWithoutOverflow()                                                                      Sub one decade to the instance (using date interval) with overflow explicitly forbidden.
314
+ * @method        $this               addDecadesWithNoOverflow(int $value = 1)                                                        Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
315
+ * @method        $this               addDecadeWithNoOverflow()                                                                       Add one decade to the instance (using date interval) with overflow explicitly forbidden.
316
+ * @method        $this               subDecadesWithNoOverflow(int $value = 1)                                                        Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
317
+ * @method        $this               subDecadeWithNoOverflow()                                                                       Sub one decade to the instance (using date interval) with overflow explicitly forbidden.
318
+ * @method        $this               addDecadesNoOverflow(int $value = 1)                                                            Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
319
+ * @method        $this               addDecadeNoOverflow()                                                                           Add one decade to the instance (using date interval) with overflow explicitly forbidden.
320
+ * @method        $this               subDecadesNoOverflow(int $value = 1)                                                            Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
321
+ * @method        $this               subDecadeNoOverflow()                                                                           Sub one decade to the instance (using date interval) with overflow explicitly forbidden.
322
+ * @method        $this               addQuarters(int $value = 1)                                                                     Add quarters (the $value count passed in) to the instance (using date interval).
323
+ * @method        $this               addQuarter()                                                                                    Add one quarter to the instance (using date interval).
324
+ * @method        $this               subQuarters(int $value = 1)                                                                     Sub quarters (the $value count passed in) to the instance (using date interval).
325
+ * @method        $this               subQuarter()                                                                                    Sub one quarter to the instance (using date interval).
326
+ * @method        $this               addQuartersWithOverflow(int $value = 1)                                                         Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
327
+ * @method        $this               addQuarterWithOverflow()                                                                        Add one quarter to the instance (using date interval) with overflow explicitly allowed.
328
+ * @method        $this               subQuartersWithOverflow(int $value = 1)                                                         Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
329
+ * @method        $this               subQuarterWithOverflow()                                                                        Sub one quarter to the instance (using date interval) with overflow explicitly allowed.
330
+ * @method        $this               addQuartersWithoutOverflow(int $value = 1)                                                      Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
331
+ * @method        $this               addQuarterWithoutOverflow()                                                                     Add one quarter to the instance (using date interval) with overflow explicitly forbidden.
332
+ * @method        $this               subQuartersWithoutOverflow(int $value = 1)                                                      Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
333
+ * @method        $this               subQuarterWithoutOverflow()                                                                     Sub one quarter to the instance (using date interval) with overflow explicitly forbidden.
334
+ * @method        $this               addQuartersWithNoOverflow(int $value = 1)                                                       Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
335
+ * @method        $this               addQuarterWithNoOverflow()                                                                      Add one quarter to the instance (using date interval) with overflow explicitly forbidden.
336
+ * @method        $this               subQuartersWithNoOverflow(int $value = 1)                                                       Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
337
+ * @method        $this               subQuarterWithNoOverflow()                                                                      Sub one quarter to the instance (using date interval) with overflow explicitly forbidden.
338
+ * @method        $this               addQuartersNoOverflow(int $value = 1)                                                           Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
339
+ * @method        $this               addQuarterNoOverflow()                                                                          Add one quarter to the instance (using date interval) with overflow explicitly forbidden.
340
+ * @method        $this               subQuartersNoOverflow(int $value = 1)                                                           Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
341
+ * @method        $this               subQuarterNoOverflow()                                                                          Sub one quarter to the instance (using date interval) with overflow explicitly forbidden.
342
+ * @method        $this               addWeeks(int $value = 1)                                                                        Add weeks (the $value count passed in) to the instance (using date interval).
343
+ * @method        $this               addWeek()                                                                                       Add one week to the instance (using date interval).
344
+ * @method        $this               subWeeks(int $value = 1)                                                                        Sub weeks (the $value count passed in) to the instance (using date interval).
345
+ * @method        $this               subWeek()                                                                                       Sub one week to the instance (using date interval).
346
+ * @method        $this               addWeekdays(int $value = 1)                                                                     Add weekdays (the $value count passed in) to the instance (using date interval).
347
+ * @method        $this               addWeekday()                                                                                    Add one weekday to the instance (using date interval).
348
+ * @method        $this               subWeekdays(int $value = 1)                                                                     Sub weekdays (the $value count passed in) to the instance (using date interval).
349
+ * @method        $this               subWeekday()                                                                                    Sub one weekday to the instance (using date interval).
350
+ * @method        $this               addRealMicros(int $value = 1)                                                                   Add microseconds (the $value count passed in) to the instance (using timestamp).
351
+ * @method        $this               addRealMicro()                                                                                  Add one microsecond to the instance (using timestamp).
352
+ * @method        $this               subRealMicros(int $value = 1)                                                                   Sub microseconds (the $value count passed in) to the instance (using timestamp).
353
+ * @method        $this               subRealMicro()                                                                                  Sub one microsecond to the instance (using timestamp).
354
+ * @method        CarbonPeriod        microsUntil($endDate = null, int $factor = 1)                                                   Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given.
355
+ * @method        $this               addRealMicroseconds(int $value = 1)                                                             Add microseconds (the $value count passed in) to the instance (using timestamp).
356
+ * @method        $this               addRealMicrosecond()                                                                            Add one microsecond to the instance (using timestamp).
357
+ * @method        $this               subRealMicroseconds(int $value = 1)                                                             Sub microseconds (the $value count passed in) to the instance (using timestamp).
358
+ * @method        $this               subRealMicrosecond()                                                                            Sub one microsecond to the instance (using timestamp).
359
+ * @method        CarbonPeriod        microsecondsUntil($endDate = null, int $factor = 1)                                             Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given.
360
+ * @method        $this               addRealMillis(int $value = 1)                                                                   Add milliseconds (the $value count passed in) to the instance (using timestamp).
361
+ * @method        $this               addRealMilli()                                                                                  Add one millisecond to the instance (using timestamp).
362
+ * @method        $this               subRealMillis(int $value = 1)                                                                   Sub milliseconds (the $value count passed in) to the instance (using timestamp).
363
+ * @method        $this               subRealMilli()                                                                                  Sub one millisecond to the instance (using timestamp).
364
+ * @method        CarbonPeriod        millisUntil($endDate = null, int $factor = 1)                                                   Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given.
365
+ * @method        $this               addRealMilliseconds(int $value = 1)                                                             Add milliseconds (the $value count passed in) to the instance (using timestamp).
366
+ * @method        $this               addRealMillisecond()                                                                            Add one millisecond to the instance (using timestamp).
367
+ * @method        $this               subRealMilliseconds(int $value = 1)                                                             Sub milliseconds (the $value count passed in) to the instance (using timestamp).
368
+ * @method        $this               subRealMillisecond()                                                                            Sub one millisecond to the instance (using timestamp).
369
+ * @method        CarbonPeriod        millisecondsUntil($endDate = null, int $factor = 1)                                             Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given.
370
+ * @method        $this               addRealSeconds(int $value = 1)                                                                  Add seconds (the $value count passed in) to the instance (using timestamp).
371
+ * @method        $this               addRealSecond()                                                                                 Add one second to the instance (using timestamp).
372
+ * @method        $this               subRealSeconds(int $value = 1)                                                                  Sub seconds (the $value count passed in) to the instance (using timestamp).
373
+ * @method        $this               subRealSecond()                                                                                 Sub one second to the instance (using timestamp).
374
+ * @method        CarbonPeriod        secondsUntil($endDate = null, int $factor = 1)                                                  Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each second or every X seconds if a factor is given.
375
+ * @method        $this               addRealMinutes(int $value = 1)                                                                  Add minutes (the $value count passed in) to the instance (using timestamp).
376
+ * @method        $this               addRealMinute()                                                                                 Add one minute to the instance (using timestamp).
377
+ * @method        $this               subRealMinutes(int $value = 1)                                                                  Sub minutes (the $value count passed in) to the instance (using timestamp).
378
+ * @method        $this               subRealMinute()                                                                                 Sub one minute to the instance (using timestamp).
379
+ * @method        CarbonPeriod        minutesUntil($endDate = null, int $factor = 1)                                                  Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each minute or every X minutes if a factor is given.
380
+ * @method        $this               addRealHours(int $value = 1)                                                                    Add hours (the $value count passed in) to the instance (using timestamp).
381
+ * @method        $this               addRealHour()                                                                                   Add one hour to the instance (using timestamp).
382
+ * @method        $this               subRealHours(int $value = 1)                                                                    Sub hours (the $value count passed in) to the instance (using timestamp).
383
+ * @method        $this               subRealHour()                                                                                   Sub one hour to the instance (using timestamp).
384
+ * @method        CarbonPeriod        hoursUntil($endDate = null, int $factor = 1)                                                    Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each hour or every X hours if a factor is given.
385
+ * @method        $this               addRealDays(int $value = 1)                                                                     Add days (the $value count passed in) to the instance (using timestamp).
386
+ * @method        $this               addRealDay()                                                                                    Add one day to the instance (using timestamp).
387
+ * @method        $this               subRealDays(int $value = 1)                                                                     Sub days (the $value count passed in) to the instance (using timestamp).
388
+ * @method        $this               subRealDay()                                                                                    Sub one day to the instance (using timestamp).
389
+ * @method        CarbonPeriod        daysUntil($endDate = null, int $factor = 1)                                                     Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each day or every X days if a factor is given.
390
+ * @method        $this               addRealWeeks(int $value = 1)                                                                    Add weeks (the $value count passed in) to the instance (using timestamp).
391
+ * @method        $this               addRealWeek()                                                                                   Add one week to the instance (using timestamp).
392
+ * @method        $this               subRealWeeks(int $value = 1)                                                                    Sub weeks (the $value count passed in) to the instance (using timestamp).
393
+ * @method        $this               subRealWeek()                                                                                   Sub one week to the instance (using timestamp).
394
+ * @method        CarbonPeriod        weeksUntil($endDate = null, int $factor = 1)                                                    Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each week or every X weeks if a factor is given.
395
+ * @method        $this               addRealMonths(int $value = 1)                                                                   Add months (the $value count passed in) to the instance (using timestamp).
396
+ * @method        $this               addRealMonth()                                                                                  Add one month to the instance (using timestamp).
397
+ * @method        $this               subRealMonths(int $value = 1)                                                                   Sub months (the $value count passed in) to the instance (using timestamp).
398
+ * @method        $this               subRealMonth()                                                                                  Sub one month to the instance (using timestamp).
399
+ * @method        CarbonPeriod        monthsUntil($endDate = null, int $factor = 1)                                                   Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each month or every X months if a factor is given.
400
+ * @method        $this               addRealQuarters(int $value = 1)                                                                 Add quarters (the $value count passed in) to the instance (using timestamp).
401
+ * @method        $this               addRealQuarter()                                                                                Add one quarter to the instance (using timestamp).
402
+ * @method        $this               subRealQuarters(int $value = 1)                                                                 Sub quarters (the $value count passed in) to the instance (using timestamp).
403
+ * @method        $this               subRealQuarter()                                                                                Sub one quarter to the instance (using timestamp).
404
+ * @method        CarbonPeriod        quartersUntil($endDate = null, int $factor = 1)                                                 Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each quarter or every X quarters if a factor is given.
405
+ * @method        $this               addRealYears(int $value = 1)                                                                    Add years (the $value count passed in) to the instance (using timestamp).
406
+ * @method        $this               addRealYear()                                                                                   Add one year to the instance (using timestamp).
407
+ * @method        $this               subRealYears(int $value = 1)                                                                    Sub years (the $value count passed in) to the instance (using timestamp).
408
+ * @method        $this               subRealYear()                                                                                   Sub one year to the instance (using timestamp).
409
+ * @method        CarbonPeriod        yearsUntil($endDate = null, int $factor = 1)                                                    Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each year or every X years if a factor is given.
410
+ * @method        $this               addRealDecades(int $value = 1)                                                                  Add decades (the $value count passed in) to the instance (using timestamp).
411
+ * @method        $this               addRealDecade()                                                                                 Add one decade to the instance (using timestamp).
412
+ * @method        $this               subRealDecades(int $value = 1)                                                                  Sub decades (the $value count passed in) to the instance (using timestamp).
413
+ * @method        $this               subRealDecade()                                                                                 Sub one decade to the instance (using timestamp).
414
+ * @method        CarbonPeriod        decadesUntil($endDate = null, int $factor = 1)                                                  Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each decade or every X decades if a factor is given.
415
+ * @method        $this               addRealCenturies(int $value = 1)                                                                Add centuries (the $value count passed in) to the instance (using timestamp).
416
+ * @method        $this               addRealCentury()                                                                                Add one century to the instance (using timestamp).
417
+ * @method        $this               subRealCenturies(int $value = 1)                                                                Sub centuries (the $value count passed in) to the instance (using timestamp).
418
+ * @method        $this               subRealCentury()                                                                                Sub one century to the instance (using timestamp).
419
+ * @method        CarbonPeriod        centuriesUntil($endDate = null, int $factor = 1)                                                Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each century or every X centuries if a factor is given.
420
+ * @method        $this               addRealMillennia(int $value = 1)                                                                Add millennia (the $value count passed in) to the instance (using timestamp).
421
+ * @method        $this               addRealMillennium()                                                                             Add one millennium to the instance (using timestamp).
422
+ * @method        $this               subRealMillennia(int $value = 1)                                                                Sub millennia (the $value count passed in) to the instance (using timestamp).
423
+ * @method        $this               subRealMillennium()                                                                             Sub one millennium to the instance (using timestamp).
424
+ * @method        CarbonPeriod        millenniaUntil($endDate = null, int $factor = 1)                                                Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millennium or every X millennia if a factor is given.
425
+ * @method        $this               roundYear(float $precision = 1, string $function = "round")                                     Round the current instance year with given precision using the given function.
426
+ * @method        $this               roundYears(float $precision = 1, string $function = "round")                                    Round the current instance year with given precision using the given function.
427
+ * @method        $this               floorYear(float $precision = 1)                                                                 Truncate the current instance year with given precision.
428
+ * @method        $this               floorYears(float $precision = 1)                                                                Truncate the current instance year with given precision.
429
+ * @method        $this               ceilYear(float $precision = 1)                                                                  Ceil the current instance year with given precision.
430
+ * @method        $this               ceilYears(float $precision = 1)                                                                 Ceil the current instance year with given precision.
431
+ * @method        $this               roundMonth(float $precision = 1, string $function = "round")                                    Round the current instance month with given precision using the given function.
432
+ * @method        $this               roundMonths(float $precision = 1, string $function = "round")                                   Round the current instance month with given precision using the given function.
433
+ * @method        $this               floorMonth(float $precision = 1)                                                                Truncate the current instance month with given precision.
434
+ * @method        $this               floorMonths(float $precision = 1)                                                               Truncate the current instance month with given precision.
435
+ * @method        $this               ceilMonth(float $precision = 1)                                                                 Ceil the current instance month with given precision.
436
+ * @method        $this               ceilMonths(float $precision = 1)                                                                Ceil the current instance month with given precision.
437
+ * @method        $this               roundDay(float $precision = 1, string $function = "round")                                      Round the current instance day with given precision using the given function.
438
+ * @method        $this               roundDays(float $precision = 1, string $function = "round")                                     Round the current instance day with given precision using the given function.
439
+ * @method        $this               floorDay(float $precision = 1)                                                                  Truncate the current instance day with given precision.
440
+ * @method        $this               floorDays(float $precision = 1)                                                                 Truncate the current instance day with given precision.
441
+ * @method        $this               ceilDay(float $precision = 1)                                                                   Ceil the current instance day with given precision.
442
+ * @method        $this               ceilDays(float $precision = 1)                                                                  Ceil the current instance day with given precision.
443
+ * @method        $this               roundHour(float $precision = 1, string $function = "round")                                     Round the current instance hour with given precision using the given function.
444
+ * @method        $this               roundHours(float $precision = 1, string $function = "round")                                    Round the current instance hour with given precision using the given function.
445
+ * @method        $this               floorHour(float $precision = 1)                                                                 Truncate the current instance hour with given precision.
446
+ * @method        $this               floorHours(float $precision = 1)                                                                Truncate the current instance hour with given precision.
447
+ * @method        $this               ceilHour(float $precision = 1)                                                                  Ceil the current instance hour with given precision.
448
+ * @method        $this               ceilHours(float $precision = 1)                                                                 Ceil the current instance hour with given precision.
449
+ * @method        $this               roundMinute(float $precision = 1, string $function = "round")                                   Round the current instance minute with given precision using the given function.
450
+ * @method        $this               roundMinutes(float $precision = 1, string $function = "round")                                  Round the current instance minute with given precision using the given function.
451
+ * @method        $this               floorMinute(float $precision = 1)                                                               Truncate the current instance minute with given precision.
452
+ * @method        $this               floorMinutes(float $precision = 1)                                                              Truncate the current instance minute with given precision.
453
+ * @method        $this               ceilMinute(float $precision = 1)                                                                Ceil the current instance minute with given precision.
454
+ * @method        $this               ceilMinutes(float $precision = 1)                                                               Ceil the current instance minute with given precision.
455
+ * @method        $this               roundSecond(float $precision = 1, string $function = "round")                                   Round the current instance second with given precision using the given function.
456
+ * @method        $this               roundSeconds(float $precision = 1, string $function = "round")                                  Round the current instance second with given precision using the given function.
457
+ * @method        $this               floorSecond(float $precision = 1)                                                               Truncate the current instance second with given precision.
458
+ * @method        $this               floorSeconds(float $precision = 1)                                                              Truncate the current instance second with given precision.
459
+ * @method        $this               ceilSecond(float $precision = 1)                                                                Ceil the current instance second with given precision.
460
+ * @method        $this               ceilSeconds(float $precision = 1)                                                               Ceil the current instance second with given precision.
461
+ * @method        $this               roundMillennium(float $precision = 1, string $function = "round")                               Round the current instance millennium with given precision using the given function.
462
+ * @method        $this               roundMillennia(float $precision = 1, string $function = "round")                                Round the current instance millennium with given precision using the given function.
463
+ * @method        $this               floorMillennium(float $precision = 1)                                                           Truncate the current instance millennium with given precision.
464
+ * @method        $this               floorMillennia(float $precision = 1)                                                            Truncate the current instance millennium with given precision.
465
+ * @method        $this               ceilMillennium(float $precision = 1)                                                            Ceil the current instance millennium with given precision.
466
+ * @method        $this               ceilMillennia(float $precision = 1)                                                             Ceil the current instance millennium with given precision.
467
+ * @method        $this               roundCentury(float $precision = 1, string $function = "round")                                  Round the current instance century with given precision using the given function.
468
+ * @method        $this               roundCenturies(float $precision = 1, string $function = "round")                                Round the current instance century with given precision using the given function.
469
+ * @method        $this               floorCentury(float $precision = 1)                                                              Truncate the current instance century with given precision.
470
+ * @method        $this               floorCenturies(float $precision = 1)                                                            Truncate the current instance century with given precision.
471
+ * @method        $this               ceilCentury(float $precision = 1)                                                               Ceil the current instance century with given precision.
472
+ * @method        $this               ceilCenturies(float $precision = 1)                                                             Ceil the current instance century with given precision.
473
+ * @method        $this               roundDecade(float $precision = 1, string $function = "round")                                   Round the current instance decade with given precision using the given function.
474
+ * @method        $this               roundDecades(float $precision = 1, string $function = "round")                                  Round the current instance decade with given precision using the given function.
475
+ * @method        $this               floorDecade(float $precision = 1)                                                               Truncate the current instance decade with given precision.
476
+ * @method        $this               floorDecades(float $precision = 1)                                                              Truncate the current instance decade with given precision.
477
+ * @method        $this               ceilDecade(float $precision = 1)                                                                Ceil the current instance decade with given precision.
478
+ * @method        $this               ceilDecades(float $precision = 1)                                                               Ceil the current instance decade with given precision.
479
+ * @method        $this               roundQuarter(float $precision = 1, string $function = "round")                                  Round the current instance quarter with given precision using the given function.
480
+ * @method        $this               roundQuarters(float $precision = 1, string $function = "round")                                 Round the current instance quarter with given precision using the given function.
481
+ * @method        $this               floorQuarter(float $precision = 1)                                                              Truncate the current instance quarter with given precision.
482
+ * @method        $this               floorQuarters(float $precision = 1)                                                             Truncate the current instance quarter with given precision.
483
+ * @method        $this               ceilQuarter(float $precision = 1)                                                               Ceil the current instance quarter with given precision.
484
+ * @method        $this               ceilQuarters(float $precision = 1)                                                              Ceil the current instance quarter with given precision.
485
+ * @method        $this               roundMillisecond(float $precision = 1, string $function = "round")                              Round the current instance millisecond with given precision using the given function.
486
+ * @method        $this               roundMilliseconds(float $precision = 1, string $function = "round")                             Round the current instance millisecond with given precision using the given function.
487
+ * @method        $this               floorMillisecond(float $precision = 1)                                                          Truncate the current instance millisecond with given precision.
488
+ * @method        $this               floorMilliseconds(float $precision = 1)                                                         Truncate the current instance millisecond with given precision.
489
+ * @method        $this               ceilMillisecond(float $precision = 1)                                                           Ceil the current instance millisecond with given precision.
490
+ * @method        $this               ceilMilliseconds(float $precision = 1)                                                          Ceil the current instance millisecond with given precision.
491
+ * @method        $this               roundMicrosecond(float $precision = 1, string $function = "round")                              Round the current instance microsecond with given precision using the given function.
492
+ * @method        $this               roundMicroseconds(float $precision = 1, string $function = "round")                             Round the current instance microsecond with given precision using the given function.
493
+ * @method        $this               floorMicrosecond(float $precision = 1)                                                          Truncate the current instance microsecond with given precision.
494
+ * @method        $this               floorMicroseconds(float $precision = 1)                                                         Truncate the current instance microsecond with given precision.
495
+ * @method        $this               ceilMicrosecond(float $precision = 1)                                                           Ceil the current instance microsecond with given precision.
496
+ * @method        $this               ceilMicroseconds(float $precision = 1)                                                          Ceil the current instance microsecond with given precision.
497
+ * @method        string              shortAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1)                     Get the difference (short format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
498
+ * @method        string              longAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1)                      Get the difference (long format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
499
+ * @method        string              shortRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1)                     Get the difference (short format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
500
+ * @method        string              longRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1)                      Get the difference (long format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
501
+ * @method        string              shortRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1)                Get the difference (short format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
502
+ * @method        string              longRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1)                 Get the difference (long format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
503
+ * @method        string              shortRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1)              Get the difference (short format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
504
+ * @method        string              longRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1)               Get the difference (long format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
505
+ * @method        static static|false createFromFormat(string $format, string $time, DateTimeZone|string|false|null $timezone = null) Parse a string into a new Carbon object according to the specified format.
506
+ * @method        static static       __set_state(array $array)                                                                       https://php.net/manual/en/datetime.set-state.php
507
+ *
508
+ * </autodoc>
509
+ */
510
+class Carbon extends DateTime implements CarbonInterface
511
+{
512
+    use Date;
513
+
514
+    /**
515
+     * Returns true if the current class/instance is mutable.
516
+     *
517
+     * @return bool
518
+     */
519
+    public static function isMutable()
520
+    {
521
+        return true;
522
+    }
523
+}

+ 19
- 0
vendor/nesbot/carbon/src/Carbon/CarbonConverterInterface.php View File

@@ -0,0 +1,19 @@
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
+
12
+namespace Carbon;
13
+
14
+use DateTimeInterface;
15
+
16
+interface CarbonConverterInterface
17
+{
18
+    public function convertDate(DateTimeInterface $dateTime, bool $negated = false): CarbonInterface;
19
+}

+ 582
- 0
vendor/nesbot/carbon/src/Carbon/CarbonImmutable.php View File

@@ -0,0 +1,582 @@
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
+
12
+namespace Carbon;
13
+
14
+use Carbon\Traits\Date;
15
+use Carbon\Traits\DeprecatedProperties;
16
+use DateTimeImmutable;
17
+use DateTimeInterface;
18
+use DateTimeZone;
19
+
20
+/**
21
+ * A simple API extension for DateTimeImmutable.
22
+ *
23
+ * @mixin DeprecatedProperties
24
+ *
25
+ * <autodoc generated by `composer phpdoc`>
26
+ *
27
+ * @property      int                 $year
28
+ * @property      int                 $yearIso
29
+ * @property      int                 $month
30
+ * @property      int                 $day
31
+ * @property      int                 $hour
32
+ * @property      int                 $minute
33
+ * @property      int                 $second
34
+ * @property      int                 $micro
35
+ * @property      int                 $microsecond
36
+ * @property      int|float|string    $timestamp                                                                                      seconds since the Unix Epoch
37
+ * @property      string              $englishDayOfWeek                                                                               the day of week in English
38
+ * @property      string              $shortEnglishDayOfWeek                                                                          the abbreviated day of week in English
39
+ * @property      string              $englishMonth                                                                                   the month in English
40
+ * @property      string              $shortEnglishMonth                                                                              the abbreviated month in English
41
+ * @property      int                 $milliseconds
42
+ * @property      int                 $millisecond
43
+ * @property      int                 $milli
44
+ * @property      int                 $week                                                                                           1 through 53
45
+ * @property      int                 $isoWeek                                                                                        1 through 53
46
+ * @property      int                 $weekYear                                                                                       year according to week format
47
+ * @property      int                 $isoWeekYear                                                                                    year according to ISO week format
48
+ * @property      int                 $dayOfYear                                                                                      1 through 366
49
+ * @property      int                 $age                                                                                            does a diffInYears() with default parameters
50
+ * @property      int                 $offset                                                                                         the timezone offset in seconds from UTC
51
+ * @property      int                 $offsetMinutes                                                                                  the timezone offset in minutes from UTC
52
+ * @property      int                 $offsetHours                                                                                    the timezone offset in hours from UTC
53
+ * @property      CarbonTimeZone      $timezone                                                                                       the current timezone
54
+ * @property      CarbonTimeZone      $tz                                                                                             alias of $timezone
55
+ * @property-read int                 $dayOfWeek                                                                                      0 (for Sunday) through 6 (for Saturday)
56
+ * @property-read int                 $dayOfWeekIso                                                                                   1 (for Monday) through 7 (for Sunday)
57
+ * @property-read int                 $weekOfYear                                                                                     ISO-8601 week number of year, weeks starting on Monday
58
+ * @property-read int                 $daysInMonth                                                                                    number of days in the given month
59
+ * @property-read string              $latinMeridiem                                                                                  "am"/"pm" (Ante meridiem or Post meridiem latin lowercase mark)
60
+ * @property-read string              $latinUpperMeridiem                                                                             "AM"/"PM" (Ante meridiem or Post meridiem latin uppercase mark)
61
+ * @property-read string              $timezoneAbbreviatedName                                                                        the current timezone abbreviated name
62
+ * @property-read string              $tzAbbrName                                                                                     alias of $timezoneAbbreviatedName
63
+ * @property-read string              $dayName                                                                                        long name of weekday translated according to Carbon locale, in english if no translation available for current language
64
+ * @property-read string              $shortDayName                                                                                   short name of weekday translated according to Carbon locale, in english if no translation available for current language
65
+ * @property-read string              $minDayName                                                                                     very short name of weekday translated according to Carbon locale, in english if no translation available for current language
66
+ * @property-read string              $monthName                                                                                      long name of month translated according to Carbon locale, in english if no translation available for current language
67
+ * @property-read string              $shortMonthName                                                                                 short name of month translated according to Carbon locale, in english if no translation available for current language
68
+ * @property-read string              $meridiem                                                                                       lowercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language
69
+ * @property-read string              $upperMeridiem                                                                                  uppercase meridiem mark translated according to Carbon locale, in latin if no translation available for current language
70
+ * @property-read int                 $noZeroHour                                                                                     current hour from 1 to 24
71
+ * @property-read int                 $weeksInYear                                                                                    51 through 53
72
+ * @property-read int                 $isoWeeksInYear                                                                                 51 through 53
73
+ * @property-read int                 $weekOfMonth                                                                                    1 through 5
74
+ * @property-read int                 $weekNumberInMonth                                                                              1 through 5
75
+ * @property-read int                 $firstWeekDay                                                                                   0 through 6
76
+ * @property-read int                 $lastWeekDay                                                                                    0 through 6
77
+ * @property-read int                 $daysInYear                                                                                     365 or 366
78
+ * @property-read int                 $quarter                                                                                        the quarter of this instance, 1 - 4
79
+ * @property-read int                 $decade                                                                                         the decade of this instance
80
+ * @property-read int                 $century                                                                                        the century of this instance
81
+ * @property-read int                 $millennium                                                                                     the millennium of this instance
82
+ * @property-read bool                $dst                                                                                            daylight savings time indicator, true if DST, false otherwise
83
+ * @property-read bool                $local                                                                                          checks if the timezone is local, true if local, false otherwise
84
+ * @property-read bool                $utc                                                                                            checks if the timezone is UTC, true if UTC, false otherwise
85
+ * @property-read string              $timezoneName                                                                                   the current timezone name
86
+ * @property-read string              $tzName                                                                                         alias of $timezoneName
87
+ * @property-read string              $locale                                                                                         locale of the current instance
88
+ *
89
+ * @method        bool                isUtc()                                                                                         Check if the current instance has UTC timezone. (Both isUtc and isUTC cases are valid.)
90
+ * @method        bool                isLocal()                                                                                       Check if the current instance has non-UTC timezone.
91
+ * @method        bool                isValid()                                                                                       Check if the current instance is a valid date.
92
+ * @method        bool                isDST()                                                                                         Check if the current instance is in a daylight saving time.
93
+ * @method        bool                isSunday()                                                                                      Checks if the instance day is sunday.
94
+ * @method        bool                isMonday()                                                                                      Checks if the instance day is monday.
95
+ * @method        bool                isTuesday()                                                                                     Checks if the instance day is tuesday.
96
+ * @method        bool                isWednesday()                                                                                   Checks if the instance day is wednesday.
97
+ * @method        bool                isThursday()                                                                                    Checks if the instance day is thursday.
98
+ * @method        bool                isFriday()                                                                                      Checks if the instance day is friday.
99
+ * @method        bool                isSaturday()                                                                                    Checks if the instance day is saturday.
100
+ * @method        bool                isSameYear(Carbon|DateTimeInterface|string|null $date = null)                                   Checks if the given date is in the same year as the instance. If null passed, compare to now (with the same timezone).
101
+ * @method        bool                isCurrentYear()                                                                                 Checks if the instance is in the same year as the current moment.
102
+ * @method        bool                isNextYear()                                                                                    Checks if the instance is in the same year as the current moment next year.
103
+ * @method        bool                isLastYear()                                                                                    Checks if the instance is in the same year as the current moment last year.
104
+ * @method        bool                isSameWeek(Carbon|DateTimeInterface|string|null $date = null)                                   Checks if the given date is in the same week as the instance. If null passed, compare to now (with the same timezone).
105
+ * @method        bool                isCurrentWeek()                                                                                 Checks if the instance is in the same week as the current moment.
106
+ * @method        bool                isNextWeek()                                                                                    Checks if the instance is in the same week as the current moment next week.
107
+ * @method        bool                isLastWeek()                                                                                    Checks if the instance is in the same week as the current moment last week.
108
+ * @method        bool                isSameDay(Carbon|DateTimeInterface|string|null $date = null)                                    Checks if the given date is in the same day as the instance. If null passed, compare to now (with the same timezone).
109
+ * @method        bool                isCurrentDay()                                                                                  Checks if the instance is in the same day as the current moment.
110
+ * @method        bool                isNextDay()                                                                                     Checks if the instance is in the same day as the current moment next day.
111
+ * @method        bool                isLastDay()                                                                                     Checks if the instance is in the same day as the current moment last day.
112
+ * @method        bool                isSameHour(Carbon|DateTimeInterface|string|null $date = null)                                   Checks if the given date is in the same hour as the instance. If null passed, compare to now (with the same timezone).
113
+ * @method        bool                isCurrentHour()                                                                                 Checks if the instance is in the same hour as the current moment.
114
+ * @method        bool                isNextHour()                                                                                    Checks if the instance is in the same hour as the current moment next hour.
115
+ * @method        bool                isLastHour()                                                                                    Checks if the instance is in the same hour as the current moment last hour.
116
+ * @method        bool                isSameMinute(Carbon|DateTimeInterface|string|null $date = null)                                 Checks if the given date is in the same minute as the instance. If null passed, compare to now (with the same timezone).
117
+ * @method        bool                isCurrentMinute()                                                                               Checks if the instance is in the same minute as the current moment.
118
+ * @method        bool                isNextMinute()                                                                                  Checks if the instance is in the same minute as the current moment next minute.
119
+ * @method        bool                isLastMinute()                                                                                  Checks if the instance is in the same minute as the current moment last minute.
120
+ * @method        bool                isSameSecond(Carbon|DateTimeInterface|string|null $date = null)                                 Checks if the given date is in the same second as the instance. If null passed, compare to now (with the same timezone).
121
+ * @method        bool                isCurrentSecond()                                                                               Checks if the instance is in the same second as the current moment.
122
+ * @method        bool                isNextSecond()                                                                                  Checks if the instance is in the same second as the current moment next second.
123
+ * @method        bool                isLastSecond()                                                                                  Checks if the instance is in the same second as the current moment last second.
124
+ * @method        bool                isSameMicro(Carbon|DateTimeInterface|string|null $date = null)                                  Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone).
125
+ * @method        bool                isCurrentMicro()                                                                                Checks if the instance is in the same microsecond as the current moment.
126
+ * @method        bool                isNextMicro()                                                                                   Checks if the instance is in the same microsecond as the current moment next microsecond.
127
+ * @method        bool                isLastMicro()                                                                                   Checks if the instance is in the same microsecond as the current moment last microsecond.
128
+ * @method        bool                isSameMicrosecond(Carbon|DateTimeInterface|string|null $date = null)                            Checks if the given date is in the same microsecond as the instance. If null passed, compare to now (with the same timezone).
129
+ * @method        bool                isCurrentMicrosecond()                                                                          Checks if the instance is in the same microsecond as the current moment.
130
+ * @method        bool                isNextMicrosecond()                                                                             Checks if the instance is in the same microsecond as the current moment next microsecond.
131
+ * @method        bool                isLastMicrosecond()                                                                             Checks if the instance is in the same microsecond as the current moment last microsecond.
132
+ * @method        bool                isCurrentMonth()                                                                                Checks if the instance is in the same month as the current moment.
133
+ * @method        bool                isNextMonth()                                                                                   Checks if the instance is in the same month as the current moment next month.
134
+ * @method        bool                isLastMonth()                                                                                   Checks if the instance is in the same month as the current moment last month.
135
+ * @method        bool                isCurrentQuarter()                                                                              Checks if the instance is in the same quarter as the current moment.
136
+ * @method        bool                isNextQuarter()                                                                                 Checks if the instance is in the same quarter as the current moment next quarter.
137
+ * @method        bool                isLastQuarter()                                                                                 Checks if the instance is in the same quarter as the current moment last quarter.
138
+ * @method        bool                isSameDecade(Carbon|DateTimeInterface|string|null $date = null)                                 Checks if the given date is in the same decade as the instance. If null passed, compare to now (with the same timezone).
139
+ * @method        bool                isCurrentDecade()                                                                               Checks if the instance is in the same decade as the current moment.
140
+ * @method        bool                isNextDecade()                                                                                  Checks if the instance is in the same decade as the current moment next decade.
141
+ * @method        bool                isLastDecade()                                                                                  Checks if the instance is in the same decade as the current moment last decade.
142
+ * @method        bool                isSameCentury(Carbon|DateTimeInterface|string|null $date = null)                                Checks if the given date is in the same century as the instance. If null passed, compare to now (with the same timezone).
143
+ * @method        bool                isCurrentCentury()                                                                              Checks if the instance is in the same century as the current moment.
144
+ * @method        bool                isNextCentury()                                                                                 Checks if the instance is in the same century as the current moment next century.
145
+ * @method        bool                isLastCentury()                                                                                 Checks if the instance is in the same century as the current moment last century.
146
+ * @method        bool                isSameMillennium(Carbon|DateTimeInterface|string|null $date = null)                             Checks if the given date is in the same millennium as the instance. If null passed, compare to now (with the same timezone).
147
+ * @method        bool                isCurrentMillennium()                                                                           Checks if the instance is in the same millennium as the current moment.
148
+ * @method        bool                isNextMillennium()                                                                              Checks if the instance is in the same millennium as the current moment next millennium.
149
+ * @method        bool                isLastMillennium()                                                                              Checks if the instance is in the same millennium as the current moment last millennium.
150
+ * @method        CarbonImmutable     years(int $value)                                                                               Set current instance year to the given value.
151
+ * @method        CarbonImmutable     year(int $value)                                                                                Set current instance year to the given value.
152
+ * @method        CarbonImmutable     setYears(int $value)                                                                            Set current instance year to the given value.
153
+ * @method        CarbonImmutable     setYear(int $value)                                                                             Set current instance year to the given value.
154
+ * @method        CarbonImmutable     months(int $value)                                                                              Set current instance month to the given value.
155
+ * @method        CarbonImmutable     month(int $value)                                                                               Set current instance month to the given value.
156
+ * @method        CarbonImmutable     setMonths(int $value)                                                                           Set current instance month to the given value.
157
+ * @method        CarbonImmutable     setMonth(int $value)                                                                            Set current instance month to the given value.
158
+ * @method        CarbonImmutable     days(int $value)                                                                                Set current instance day to the given value.
159
+ * @method        CarbonImmutable     day(int $value)                                                                                 Set current instance day to the given value.
160
+ * @method        CarbonImmutable     setDays(int $value)                                                                             Set current instance day to the given value.
161
+ * @method        CarbonImmutable     setDay(int $value)                                                                              Set current instance day to the given value.
162
+ * @method        CarbonImmutable     hours(int $value)                                                                               Set current instance hour to the given value.
163
+ * @method        CarbonImmutable     hour(int $value)                                                                                Set current instance hour to the given value.
164
+ * @method        CarbonImmutable     setHours(int $value)                                                                            Set current instance hour to the given value.
165
+ * @method        CarbonImmutable     setHour(int $value)                                                                             Set current instance hour to the given value.
166
+ * @method        CarbonImmutable     minutes(int $value)                                                                             Set current instance minute to the given value.
167
+ * @method        CarbonImmutable     minute(int $value)                                                                              Set current instance minute to the given value.
168
+ * @method        CarbonImmutable     setMinutes(int $value)                                                                          Set current instance minute to the given value.
169
+ * @method        CarbonImmutable     setMinute(int $value)                                                                           Set current instance minute to the given value.
170
+ * @method        CarbonImmutable     seconds(int $value)                                                                             Set current instance second to the given value.
171
+ * @method        CarbonImmutable     second(int $value)                                                                              Set current instance second to the given value.
172
+ * @method        CarbonImmutable     setSeconds(int $value)                                                                          Set current instance second to the given value.
173
+ * @method        CarbonImmutable     setSecond(int $value)                                                                           Set current instance second to the given value.
174
+ * @method        CarbonImmutable     millis(int $value)                                                                              Set current instance millisecond to the given value.
175
+ * @method        CarbonImmutable     milli(int $value)                                                                               Set current instance millisecond to the given value.
176
+ * @method        CarbonImmutable     setMillis(int $value)                                                                           Set current instance millisecond to the given value.
177
+ * @method        CarbonImmutable     setMilli(int $value)                                                                            Set current instance millisecond to the given value.
178
+ * @method        CarbonImmutable     milliseconds(int $value)                                                                        Set current instance millisecond to the given value.
179
+ * @method        CarbonImmutable     millisecond(int $value)                                                                         Set current instance millisecond to the given value.
180
+ * @method        CarbonImmutable     setMilliseconds(int $value)                                                                     Set current instance millisecond to the given value.
181
+ * @method        CarbonImmutable     setMillisecond(int $value)                                                                      Set current instance millisecond to the given value.
182
+ * @method        CarbonImmutable     micros(int $value)                                                                              Set current instance microsecond to the given value.
183
+ * @method        CarbonImmutable     micro(int $value)                                                                               Set current instance microsecond to the given value.
184
+ * @method        CarbonImmutable     setMicros(int $value)                                                                           Set current instance microsecond to the given value.
185
+ * @method        CarbonImmutable     setMicro(int $value)                                                                            Set current instance microsecond to the given value.
186
+ * @method        CarbonImmutable     microseconds(int $value)                                                                        Set current instance microsecond to the given value.
187
+ * @method        CarbonImmutable     microsecond(int $value)                                                                         Set current instance microsecond to the given value.
188
+ * @method        CarbonImmutable     setMicroseconds(int $value)                                                                     Set current instance microsecond to the given value.
189
+ * @method        CarbonImmutable     setMicrosecond(int $value)                                                                      Set current instance microsecond to the given value.
190
+ * @method        CarbonImmutable     addYears(int $value = 1)                                                                        Add years (the $value count passed in) to the instance (using date interval).
191
+ * @method        CarbonImmutable     addYear()                                                                                       Add one year to the instance (using date interval).
192
+ * @method        CarbonImmutable     subYears(int $value = 1)                                                                        Sub years (the $value count passed in) to the instance (using date interval).
193
+ * @method        CarbonImmutable     subYear()                                                                                       Sub one year to the instance (using date interval).
194
+ * @method        CarbonImmutable     addYearsWithOverflow(int $value = 1)                                                            Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
195
+ * @method        CarbonImmutable     addYearWithOverflow()                                                                           Add one year to the instance (using date interval) with overflow explicitly allowed.
196
+ * @method        CarbonImmutable     subYearsWithOverflow(int $value = 1)                                                            Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
197
+ * @method        CarbonImmutable     subYearWithOverflow()                                                                           Sub one year to the instance (using date interval) with overflow explicitly allowed.
198
+ * @method        CarbonImmutable     addYearsWithoutOverflow(int $value = 1)                                                         Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
199
+ * @method        CarbonImmutable     addYearWithoutOverflow()                                                                        Add one year to the instance (using date interval) with overflow explicitly forbidden.
200
+ * @method        CarbonImmutable     subYearsWithoutOverflow(int $value = 1)                                                         Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
201
+ * @method        CarbonImmutable     subYearWithoutOverflow()                                                                        Sub one year to the instance (using date interval) with overflow explicitly forbidden.
202
+ * @method        CarbonImmutable     addYearsWithNoOverflow(int $value = 1)                                                          Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
203
+ * @method        CarbonImmutable     addYearWithNoOverflow()                                                                         Add one year to the instance (using date interval) with overflow explicitly forbidden.
204
+ * @method        CarbonImmutable     subYearsWithNoOverflow(int $value = 1)                                                          Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
205
+ * @method        CarbonImmutable     subYearWithNoOverflow()                                                                         Sub one year to the instance (using date interval) with overflow explicitly forbidden.
206
+ * @method        CarbonImmutable     addYearsNoOverflow(int $value = 1)                                                              Add years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
207
+ * @method        CarbonImmutable     addYearNoOverflow()                                                                             Add one year to the instance (using date interval) with overflow explicitly forbidden.
208
+ * @method        CarbonImmutable     subYearsNoOverflow(int $value = 1)                                                              Sub years (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
209
+ * @method        CarbonImmutable     subYearNoOverflow()                                                                             Sub one year to the instance (using date interval) with overflow explicitly forbidden.
210
+ * @method        CarbonImmutable     addMonths(int $value = 1)                                                                       Add months (the $value count passed in) to the instance (using date interval).
211
+ * @method        CarbonImmutable     addMonth()                                                                                      Add one month to the instance (using date interval).
212
+ * @method        CarbonImmutable     subMonths(int $value = 1)                                                                       Sub months (the $value count passed in) to the instance (using date interval).
213
+ * @method        CarbonImmutable     subMonth()                                                                                      Sub one month to the instance (using date interval).
214
+ * @method        CarbonImmutable     addMonthsWithOverflow(int $value = 1)                                                           Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
215
+ * @method        CarbonImmutable     addMonthWithOverflow()                                                                          Add one month to the instance (using date interval) with overflow explicitly allowed.
216
+ * @method        CarbonImmutable     subMonthsWithOverflow(int $value = 1)                                                           Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
217
+ * @method        CarbonImmutable     subMonthWithOverflow()                                                                          Sub one month to the instance (using date interval) with overflow explicitly allowed.
218
+ * @method        CarbonImmutable     addMonthsWithoutOverflow(int $value = 1)                                                        Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
219
+ * @method        CarbonImmutable     addMonthWithoutOverflow()                                                                       Add one month to the instance (using date interval) with overflow explicitly forbidden.
220
+ * @method        CarbonImmutable     subMonthsWithoutOverflow(int $value = 1)                                                        Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
221
+ * @method        CarbonImmutable     subMonthWithoutOverflow()                                                                       Sub one month to the instance (using date interval) with overflow explicitly forbidden.
222
+ * @method        CarbonImmutable     addMonthsWithNoOverflow(int $value = 1)                                                         Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
223
+ * @method        CarbonImmutable     addMonthWithNoOverflow()                                                                        Add one month to the instance (using date interval) with overflow explicitly forbidden.
224
+ * @method        CarbonImmutable     subMonthsWithNoOverflow(int $value = 1)                                                         Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
225
+ * @method        CarbonImmutable     subMonthWithNoOverflow()                                                                        Sub one month to the instance (using date interval) with overflow explicitly forbidden.
226
+ * @method        CarbonImmutable     addMonthsNoOverflow(int $value = 1)                                                             Add months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
227
+ * @method        CarbonImmutable     addMonthNoOverflow()                                                                            Add one month to the instance (using date interval) with overflow explicitly forbidden.
228
+ * @method        CarbonImmutable     subMonthsNoOverflow(int $value = 1)                                                             Sub months (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
229
+ * @method        CarbonImmutable     subMonthNoOverflow()                                                                            Sub one month to the instance (using date interval) with overflow explicitly forbidden.
230
+ * @method        CarbonImmutable     addDays(int $value = 1)                                                                         Add days (the $value count passed in) to the instance (using date interval).
231
+ * @method        CarbonImmutable     addDay()                                                                                        Add one day to the instance (using date interval).
232
+ * @method        CarbonImmutable     subDays(int $value = 1)                                                                         Sub days (the $value count passed in) to the instance (using date interval).
233
+ * @method        CarbonImmutable     subDay()                                                                                        Sub one day to the instance (using date interval).
234
+ * @method        CarbonImmutable     addHours(int $value = 1)                                                                        Add hours (the $value count passed in) to the instance (using date interval).
235
+ * @method        CarbonImmutable     addHour()                                                                                       Add one hour to the instance (using date interval).
236
+ * @method        CarbonImmutable     subHours(int $value = 1)                                                                        Sub hours (the $value count passed in) to the instance (using date interval).
237
+ * @method        CarbonImmutable     subHour()                                                                                       Sub one hour to the instance (using date interval).
238
+ * @method        CarbonImmutable     addMinutes(int $value = 1)                                                                      Add minutes (the $value count passed in) to the instance (using date interval).
239
+ * @method        CarbonImmutable     addMinute()                                                                                     Add one minute to the instance (using date interval).
240
+ * @method        CarbonImmutable     subMinutes(int $value = 1)                                                                      Sub minutes (the $value count passed in) to the instance (using date interval).
241
+ * @method        CarbonImmutable     subMinute()                                                                                     Sub one minute to the instance (using date interval).
242
+ * @method        CarbonImmutable     addSeconds(int $value = 1)                                                                      Add seconds (the $value count passed in) to the instance (using date interval).
243
+ * @method        CarbonImmutable     addSecond()                                                                                     Add one second to the instance (using date interval).
244
+ * @method        CarbonImmutable     subSeconds(int $value = 1)                                                                      Sub seconds (the $value count passed in) to the instance (using date interval).
245
+ * @method        CarbonImmutable     subSecond()                                                                                     Sub one second to the instance (using date interval).
246
+ * @method        CarbonImmutable     addMillis(int $value = 1)                                                                       Add milliseconds (the $value count passed in) to the instance (using date interval).
247
+ * @method        CarbonImmutable     addMilli()                                                                                      Add one millisecond to the instance (using date interval).
248
+ * @method        CarbonImmutable     subMillis(int $value = 1)                                                                       Sub milliseconds (the $value count passed in) to the instance (using date interval).
249
+ * @method        CarbonImmutable     subMilli()                                                                                      Sub one millisecond to the instance (using date interval).
250
+ * @method        CarbonImmutable     addMilliseconds(int $value = 1)                                                                 Add milliseconds (the $value count passed in) to the instance (using date interval).
251
+ * @method        CarbonImmutable     addMillisecond()                                                                                Add one millisecond to the instance (using date interval).
252
+ * @method        CarbonImmutable     subMilliseconds(int $value = 1)                                                                 Sub milliseconds (the $value count passed in) to the instance (using date interval).
253
+ * @method        CarbonImmutable     subMillisecond()                                                                                Sub one millisecond to the instance (using date interval).
254
+ * @method        CarbonImmutable     addMicros(int $value = 1)                                                                       Add microseconds (the $value count passed in) to the instance (using date interval).
255
+ * @method        CarbonImmutable     addMicro()                                                                                      Add one microsecond to the instance (using date interval).
256
+ * @method        CarbonImmutable     subMicros(int $value = 1)                                                                       Sub microseconds (the $value count passed in) to the instance (using date interval).
257
+ * @method        CarbonImmutable     subMicro()                                                                                      Sub one microsecond to the instance (using date interval).
258
+ * @method        CarbonImmutable     addMicroseconds(int $value = 1)                                                                 Add microseconds (the $value count passed in) to the instance (using date interval).
259
+ * @method        CarbonImmutable     addMicrosecond()                                                                                Add one microsecond to the instance (using date interval).
260
+ * @method        CarbonImmutable     subMicroseconds(int $value = 1)                                                                 Sub microseconds (the $value count passed in) to the instance (using date interval).
261
+ * @method        CarbonImmutable     subMicrosecond()                                                                                Sub one microsecond to the instance (using date interval).
262
+ * @method        CarbonImmutable     addMillennia(int $value = 1)                                                                    Add millennia (the $value count passed in) to the instance (using date interval).
263
+ * @method        CarbonImmutable     addMillennium()                                                                                 Add one millennium to the instance (using date interval).
264
+ * @method        CarbonImmutable     subMillennia(int $value = 1)                                                                    Sub millennia (the $value count passed in) to the instance (using date interval).
265
+ * @method        CarbonImmutable     subMillennium()                                                                                 Sub one millennium to the instance (using date interval).
266
+ * @method        CarbonImmutable     addMillenniaWithOverflow(int $value = 1)                                                        Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
267
+ * @method        CarbonImmutable     addMillenniumWithOverflow()                                                                     Add one millennium to the instance (using date interval) with overflow explicitly allowed.
268
+ * @method        CarbonImmutable     subMillenniaWithOverflow(int $value = 1)                                                        Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
269
+ * @method        CarbonImmutable     subMillenniumWithOverflow()                                                                     Sub one millennium to the instance (using date interval) with overflow explicitly allowed.
270
+ * @method        CarbonImmutable     addMillenniaWithoutOverflow(int $value = 1)                                                     Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
271
+ * @method        CarbonImmutable     addMillenniumWithoutOverflow()                                                                  Add one millennium to the instance (using date interval) with overflow explicitly forbidden.
272
+ * @method        CarbonImmutable     subMillenniaWithoutOverflow(int $value = 1)                                                     Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
273
+ * @method        CarbonImmutable     subMillenniumWithoutOverflow()                                                                  Sub one millennium to the instance (using date interval) with overflow explicitly forbidden.
274
+ * @method        CarbonImmutable     addMillenniaWithNoOverflow(int $value = 1)                                                      Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
275
+ * @method        CarbonImmutable     addMillenniumWithNoOverflow()                                                                   Add one millennium to the instance (using date interval) with overflow explicitly forbidden.
276
+ * @method        CarbonImmutable     subMillenniaWithNoOverflow(int $value = 1)                                                      Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
277
+ * @method        CarbonImmutable     subMillenniumWithNoOverflow()                                                                   Sub one millennium to the instance (using date interval) with overflow explicitly forbidden.
278
+ * @method        CarbonImmutable     addMillenniaNoOverflow(int $value = 1)                                                          Add millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
279
+ * @method        CarbonImmutable     addMillenniumNoOverflow()                                                                       Add one millennium to the instance (using date interval) with overflow explicitly forbidden.
280
+ * @method        CarbonImmutable     subMillenniaNoOverflow(int $value = 1)                                                          Sub millennia (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
281
+ * @method        CarbonImmutable     subMillenniumNoOverflow()                                                                       Sub one millennium to the instance (using date interval) with overflow explicitly forbidden.
282
+ * @method        CarbonImmutable     addCenturies(int $value = 1)                                                                    Add centuries (the $value count passed in) to the instance (using date interval).
283
+ * @method        CarbonImmutable     addCentury()                                                                                    Add one century to the instance (using date interval).
284
+ * @method        CarbonImmutable     subCenturies(int $value = 1)                                                                    Sub centuries (the $value count passed in) to the instance (using date interval).
285
+ * @method        CarbonImmutable     subCentury()                                                                                    Sub one century to the instance (using date interval).
286
+ * @method        CarbonImmutable     addCenturiesWithOverflow(int $value = 1)                                                        Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
287
+ * @method        CarbonImmutable     addCenturyWithOverflow()                                                                        Add one century to the instance (using date interval) with overflow explicitly allowed.
288
+ * @method        CarbonImmutable     subCenturiesWithOverflow(int $value = 1)                                                        Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
289
+ * @method        CarbonImmutable     subCenturyWithOverflow()                                                                        Sub one century to the instance (using date interval) with overflow explicitly allowed.
290
+ * @method        CarbonImmutable     addCenturiesWithoutOverflow(int $value = 1)                                                     Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
291
+ * @method        CarbonImmutable     addCenturyWithoutOverflow()                                                                     Add one century to the instance (using date interval) with overflow explicitly forbidden.
292
+ * @method        CarbonImmutable     subCenturiesWithoutOverflow(int $value = 1)                                                     Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
293
+ * @method        CarbonImmutable     subCenturyWithoutOverflow()                                                                     Sub one century to the instance (using date interval) with overflow explicitly forbidden.
294
+ * @method        CarbonImmutable     addCenturiesWithNoOverflow(int $value = 1)                                                      Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
295
+ * @method        CarbonImmutable     addCenturyWithNoOverflow()                                                                      Add one century to the instance (using date interval) with overflow explicitly forbidden.
296
+ * @method        CarbonImmutable     subCenturiesWithNoOverflow(int $value = 1)                                                      Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
297
+ * @method        CarbonImmutable     subCenturyWithNoOverflow()                                                                      Sub one century to the instance (using date interval) with overflow explicitly forbidden.
298
+ * @method        CarbonImmutable     addCenturiesNoOverflow(int $value = 1)                                                          Add centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
299
+ * @method        CarbonImmutable     addCenturyNoOverflow()                                                                          Add one century to the instance (using date interval) with overflow explicitly forbidden.
300
+ * @method        CarbonImmutable     subCenturiesNoOverflow(int $value = 1)                                                          Sub centuries (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
301
+ * @method        CarbonImmutable     subCenturyNoOverflow()                                                                          Sub one century to the instance (using date interval) with overflow explicitly forbidden.
302
+ * @method        CarbonImmutable     addDecades(int $value = 1)                                                                      Add decades (the $value count passed in) to the instance (using date interval).
303
+ * @method        CarbonImmutable     addDecade()                                                                                     Add one decade to the instance (using date interval).
304
+ * @method        CarbonImmutable     subDecades(int $value = 1)                                                                      Sub decades (the $value count passed in) to the instance (using date interval).
305
+ * @method        CarbonImmutable     subDecade()                                                                                     Sub one decade to the instance (using date interval).
306
+ * @method        CarbonImmutable     addDecadesWithOverflow(int $value = 1)                                                          Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
307
+ * @method        CarbonImmutable     addDecadeWithOverflow()                                                                         Add one decade to the instance (using date interval) with overflow explicitly allowed.
308
+ * @method        CarbonImmutable     subDecadesWithOverflow(int $value = 1)                                                          Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
309
+ * @method        CarbonImmutable     subDecadeWithOverflow()                                                                         Sub one decade to the instance (using date interval) with overflow explicitly allowed.
310
+ * @method        CarbonImmutable     addDecadesWithoutOverflow(int $value = 1)                                                       Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
311
+ * @method        CarbonImmutable     addDecadeWithoutOverflow()                                                                      Add one decade to the instance (using date interval) with overflow explicitly forbidden.
312
+ * @method        CarbonImmutable     subDecadesWithoutOverflow(int $value = 1)                                                       Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
313
+ * @method        CarbonImmutable     subDecadeWithoutOverflow()                                                                      Sub one decade to the instance (using date interval) with overflow explicitly forbidden.
314
+ * @method        CarbonImmutable     addDecadesWithNoOverflow(int $value = 1)                                                        Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
315
+ * @method        CarbonImmutable     addDecadeWithNoOverflow()                                                                       Add one decade to the instance (using date interval) with overflow explicitly forbidden.
316
+ * @method        CarbonImmutable     subDecadesWithNoOverflow(int $value = 1)                                                        Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
317
+ * @method        CarbonImmutable     subDecadeWithNoOverflow()                                                                       Sub one decade to the instance (using date interval) with overflow explicitly forbidden.
318
+ * @method        CarbonImmutable     addDecadesNoOverflow(int $value = 1)                                                            Add decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
319
+ * @method        CarbonImmutable     addDecadeNoOverflow()                                                                           Add one decade to the instance (using date interval) with overflow explicitly forbidden.
320
+ * @method        CarbonImmutable     subDecadesNoOverflow(int $value = 1)                                                            Sub decades (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
321
+ * @method        CarbonImmutable     subDecadeNoOverflow()                                                                           Sub one decade to the instance (using date interval) with overflow explicitly forbidden.
322
+ * @method        CarbonImmutable     addQuarters(int $value = 1)                                                                     Add quarters (the $value count passed in) to the instance (using date interval).
323
+ * @method        CarbonImmutable     addQuarter()                                                                                    Add one quarter to the instance (using date interval).
324
+ * @method        CarbonImmutable     subQuarters(int $value = 1)                                                                     Sub quarters (the $value count passed in) to the instance (using date interval).
325
+ * @method        CarbonImmutable     subQuarter()                                                                                    Sub one quarter to the instance (using date interval).
326
+ * @method        CarbonImmutable     addQuartersWithOverflow(int $value = 1)                                                         Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
327
+ * @method        CarbonImmutable     addQuarterWithOverflow()                                                                        Add one quarter to the instance (using date interval) with overflow explicitly allowed.
328
+ * @method        CarbonImmutable     subQuartersWithOverflow(int $value = 1)                                                         Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly allowed.
329
+ * @method        CarbonImmutable     subQuarterWithOverflow()                                                                        Sub one quarter to the instance (using date interval) with overflow explicitly allowed.
330
+ * @method        CarbonImmutable     addQuartersWithoutOverflow(int $value = 1)                                                      Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
331
+ * @method        CarbonImmutable     addQuarterWithoutOverflow()                                                                     Add one quarter to the instance (using date interval) with overflow explicitly forbidden.
332
+ * @method        CarbonImmutable     subQuartersWithoutOverflow(int $value = 1)                                                      Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
333
+ * @method        CarbonImmutable     subQuarterWithoutOverflow()                                                                     Sub one quarter to the instance (using date interval) with overflow explicitly forbidden.
334
+ * @method        CarbonImmutable     addQuartersWithNoOverflow(int $value = 1)                                                       Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
335
+ * @method        CarbonImmutable     addQuarterWithNoOverflow()                                                                      Add one quarter to the instance (using date interval) with overflow explicitly forbidden.
336
+ * @method        CarbonImmutable     subQuartersWithNoOverflow(int $value = 1)                                                       Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
337
+ * @method        CarbonImmutable     subQuarterWithNoOverflow()                                                                      Sub one quarter to the instance (using date interval) with overflow explicitly forbidden.
338
+ * @method        CarbonImmutable     addQuartersNoOverflow(int $value = 1)                                                           Add quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
339
+ * @method        CarbonImmutable     addQuarterNoOverflow()                                                                          Add one quarter to the instance (using date interval) with overflow explicitly forbidden.
340
+ * @method        CarbonImmutable     subQuartersNoOverflow(int $value = 1)                                                           Sub quarters (the $value count passed in) to the instance (using date interval) with overflow explicitly forbidden.
341
+ * @method        CarbonImmutable     subQuarterNoOverflow()                                                                          Sub one quarter to the instance (using date interval) with overflow explicitly forbidden.
342
+ * @method        CarbonImmutable     addWeeks(int $value = 1)                                                                        Add weeks (the $value count passed in) to the instance (using date interval).
343
+ * @method        CarbonImmutable     addWeek()                                                                                       Add one week to the instance (using date interval).
344
+ * @method        CarbonImmutable     subWeeks(int $value = 1)                                                                        Sub weeks (the $value count passed in) to the instance (using date interval).
345
+ * @method        CarbonImmutable     subWeek()                                                                                       Sub one week to the instance (using date interval).
346
+ * @method        CarbonImmutable     addWeekdays(int $value = 1)                                                                     Add weekdays (the $value count passed in) to the instance (using date interval).
347
+ * @method        CarbonImmutable     addWeekday()                                                                                    Add one weekday to the instance (using date interval).
348
+ * @method        CarbonImmutable     subWeekdays(int $value = 1)                                                                     Sub weekdays (the $value count passed in) to the instance (using date interval).
349
+ * @method        CarbonImmutable     subWeekday()                                                                                    Sub one weekday to the instance (using date interval).
350
+ * @method        CarbonImmutable     addRealMicros(int $value = 1)                                                                   Add microseconds (the $value count passed in) to the instance (using timestamp).
351
+ * @method        CarbonImmutable     addRealMicro()                                                                                  Add one microsecond to the instance (using timestamp).
352
+ * @method        CarbonImmutable     subRealMicros(int $value = 1)                                                                   Sub microseconds (the $value count passed in) to the instance (using timestamp).
353
+ * @method        CarbonImmutable     subRealMicro()                                                                                  Sub one microsecond to the instance (using timestamp).
354
+ * @method        CarbonPeriod        microsUntil($endDate = null, int $factor = 1)                                                   Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given.
355
+ * @method        CarbonImmutable     addRealMicroseconds(int $value = 1)                                                             Add microseconds (the $value count passed in) to the instance (using timestamp).
356
+ * @method        CarbonImmutable     addRealMicrosecond()                                                                            Add one microsecond to the instance (using timestamp).
357
+ * @method        CarbonImmutable     subRealMicroseconds(int $value = 1)                                                             Sub microseconds (the $value count passed in) to the instance (using timestamp).
358
+ * @method        CarbonImmutable     subRealMicrosecond()                                                                            Sub one microsecond to the instance (using timestamp).
359
+ * @method        CarbonPeriod        microsecondsUntil($endDate = null, int $factor = 1)                                             Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each microsecond or every X microseconds if a factor is given.
360
+ * @method        CarbonImmutable     addRealMillis(int $value = 1)                                                                   Add milliseconds (the $value count passed in) to the instance (using timestamp).
361
+ * @method        CarbonImmutable     addRealMilli()                                                                                  Add one millisecond to the instance (using timestamp).
362
+ * @method        CarbonImmutable     subRealMillis(int $value = 1)                                                                   Sub milliseconds (the $value count passed in) to the instance (using timestamp).
363
+ * @method        CarbonImmutable     subRealMilli()                                                                                  Sub one millisecond to the instance (using timestamp).
364
+ * @method        CarbonPeriod        millisUntil($endDate = null, int $factor = 1)                                                   Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given.
365
+ * @method        CarbonImmutable     addRealMilliseconds(int $value = 1)                                                             Add milliseconds (the $value count passed in) to the instance (using timestamp).
366
+ * @method        CarbonImmutable     addRealMillisecond()                                                                            Add one millisecond to the instance (using timestamp).
367
+ * @method        CarbonImmutable     subRealMilliseconds(int $value = 1)                                                             Sub milliseconds (the $value count passed in) to the instance (using timestamp).
368
+ * @method        CarbonImmutable     subRealMillisecond()                                                                            Sub one millisecond to the instance (using timestamp).
369
+ * @method        CarbonPeriod        millisecondsUntil($endDate = null, int $factor = 1)                                             Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millisecond or every X milliseconds if a factor is given.
370
+ * @method        CarbonImmutable     addRealSeconds(int $value = 1)                                                                  Add seconds (the $value count passed in) to the instance (using timestamp).
371
+ * @method        CarbonImmutable     addRealSecond()                                                                                 Add one second to the instance (using timestamp).
372
+ * @method        CarbonImmutable     subRealSeconds(int $value = 1)                                                                  Sub seconds (the $value count passed in) to the instance (using timestamp).
373
+ * @method        CarbonImmutable     subRealSecond()                                                                                 Sub one second to the instance (using timestamp).
374
+ * @method        CarbonPeriod        secondsUntil($endDate = null, int $factor = 1)                                                  Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each second or every X seconds if a factor is given.
375
+ * @method        CarbonImmutable     addRealMinutes(int $value = 1)                                                                  Add minutes (the $value count passed in) to the instance (using timestamp).
376
+ * @method        CarbonImmutable     addRealMinute()                                                                                 Add one minute to the instance (using timestamp).
377
+ * @method        CarbonImmutable     subRealMinutes(int $value = 1)                                                                  Sub minutes (the $value count passed in) to the instance (using timestamp).
378
+ * @method        CarbonImmutable     subRealMinute()                                                                                 Sub one minute to the instance (using timestamp).
379
+ * @method        CarbonPeriod        minutesUntil($endDate = null, int $factor = 1)                                                  Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each minute or every X minutes if a factor is given.
380
+ * @method        CarbonImmutable     addRealHours(int $value = 1)                                                                    Add hours (the $value count passed in) to the instance (using timestamp).
381
+ * @method        CarbonImmutable     addRealHour()                                                                                   Add one hour to the instance (using timestamp).
382
+ * @method        CarbonImmutable     subRealHours(int $value = 1)                                                                    Sub hours (the $value count passed in) to the instance (using timestamp).
383
+ * @method        CarbonImmutable     subRealHour()                                                                                   Sub one hour to the instance (using timestamp).
384
+ * @method        CarbonPeriod        hoursUntil($endDate = null, int $factor = 1)                                                    Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each hour or every X hours if a factor is given.
385
+ * @method        CarbonImmutable     addRealDays(int $value = 1)                                                                     Add days (the $value count passed in) to the instance (using timestamp).
386
+ * @method        CarbonImmutable     addRealDay()                                                                                    Add one day to the instance (using timestamp).
387
+ * @method        CarbonImmutable     subRealDays(int $value = 1)                                                                     Sub days (the $value count passed in) to the instance (using timestamp).
388
+ * @method        CarbonImmutable     subRealDay()                                                                                    Sub one day to the instance (using timestamp).
389
+ * @method        CarbonPeriod        daysUntil($endDate = null, int $factor = 1)                                                     Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each day or every X days if a factor is given.
390
+ * @method        CarbonImmutable     addRealWeeks(int $value = 1)                                                                    Add weeks (the $value count passed in) to the instance (using timestamp).
391
+ * @method        CarbonImmutable     addRealWeek()                                                                                   Add one week to the instance (using timestamp).
392
+ * @method        CarbonImmutable     subRealWeeks(int $value = 1)                                                                    Sub weeks (the $value count passed in) to the instance (using timestamp).
393
+ * @method        CarbonImmutable     subRealWeek()                                                                                   Sub one week to the instance (using timestamp).
394
+ * @method        CarbonPeriod        weeksUntil($endDate = null, int $factor = 1)                                                    Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each week or every X weeks if a factor is given.
395
+ * @method        CarbonImmutable     addRealMonths(int $value = 1)                                                                   Add months (the $value count passed in) to the instance (using timestamp).
396
+ * @method        CarbonImmutable     addRealMonth()                                                                                  Add one month to the instance (using timestamp).
397
+ * @method        CarbonImmutable     subRealMonths(int $value = 1)                                                                   Sub months (the $value count passed in) to the instance (using timestamp).
398
+ * @method        CarbonImmutable     subRealMonth()                                                                                  Sub one month to the instance (using timestamp).
399
+ * @method        CarbonPeriod        monthsUntil($endDate = null, int $factor = 1)                                                   Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each month or every X months if a factor is given.
400
+ * @method        CarbonImmutable     addRealQuarters(int $value = 1)                                                                 Add quarters (the $value count passed in) to the instance (using timestamp).
401
+ * @method        CarbonImmutable     addRealQuarter()                                                                                Add one quarter to the instance (using timestamp).
402
+ * @method        CarbonImmutable     subRealQuarters(int $value = 1)                                                                 Sub quarters (the $value count passed in) to the instance (using timestamp).
403
+ * @method        CarbonImmutable     subRealQuarter()                                                                                Sub one quarter to the instance (using timestamp).
404
+ * @method        CarbonPeriod        quartersUntil($endDate = null, int $factor = 1)                                                 Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each quarter or every X quarters if a factor is given.
405
+ * @method        CarbonImmutable     addRealYears(int $value = 1)                                                                    Add years (the $value count passed in) to the instance (using timestamp).
406
+ * @method        CarbonImmutable     addRealYear()                                                                                   Add one year to the instance (using timestamp).
407
+ * @method        CarbonImmutable     subRealYears(int $value = 1)                                                                    Sub years (the $value count passed in) to the instance (using timestamp).
408
+ * @method        CarbonImmutable     subRealYear()                                                                                   Sub one year to the instance (using timestamp).
409
+ * @method        CarbonPeriod        yearsUntil($endDate = null, int $factor = 1)                                                    Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each year or every X years if a factor is given.
410
+ * @method        CarbonImmutable     addRealDecades(int $value = 1)                                                                  Add decades (the $value count passed in) to the instance (using timestamp).
411
+ * @method        CarbonImmutable     addRealDecade()                                                                                 Add one decade to the instance (using timestamp).
412
+ * @method        CarbonImmutable     subRealDecades(int $value = 1)                                                                  Sub decades (the $value count passed in) to the instance (using timestamp).
413
+ * @method        CarbonImmutable     subRealDecade()                                                                                 Sub one decade to the instance (using timestamp).
414
+ * @method        CarbonPeriod        decadesUntil($endDate = null, int $factor = 1)                                                  Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each decade or every X decades if a factor is given.
415
+ * @method        CarbonImmutable     addRealCenturies(int $value = 1)                                                                Add centuries (the $value count passed in) to the instance (using timestamp).
416
+ * @method        CarbonImmutable     addRealCentury()                                                                                Add one century to the instance (using timestamp).
417
+ * @method        CarbonImmutable     subRealCenturies(int $value = 1)                                                                Sub centuries (the $value count passed in) to the instance (using timestamp).
418
+ * @method        CarbonImmutable     subRealCentury()                                                                                Sub one century to the instance (using timestamp).
419
+ * @method        CarbonPeriod        centuriesUntil($endDate = null, int $factor = 1)                                                Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each century or every X centuries if a factor is given.
420
+ * @method        CarbonImmutable     addRealMillennia(int $value = 1)                                                                Add millennia (the $value count passed in) to the instance (using timestamp).
421
+ * @method        CarbonImmutable     addRealMillennium()                                                                             Add one millennium to the instance (using timestamp).
422
+ * @method        CarbonImmutable     subRealMillennia(int $value = 1)                                                                Sub millennia (the $value count passed in) to the instance (using timestamp).
423
+ * @method        CarbonImmutable     subRealMillennium()                                                                             Sub one millennium to the instance (using timestamp).
424
+ * @method        CarbonPeriod        millenniaUntil($endDate = null, int $factor = 1)                                                Return an iterable period from current date to given end (string, DateTime or Carbon instance) for each millennium or every X millennia if a factor is given.
425
+ * @method        CarbonImmutable     roundYear(float $precision = 1, string $function = "round")                                     Round the current instance year with given precision using the given function.
426
+ * @method        CarbonImmutable     roundYears(float $precision = 1, string $function = "round")                                    Round the current instance year with given precision using the given function.
427
+ * @method        CarbonImmutable     floorYear(float $precision = 1)                                                                 Truncate the current instance year with given precision.
428
+ * @method        CarbonImmutable     floorYears(float $precision = 1)                                                                Truncate the current instance year with given precision.
429
+ * @method        CarbonImmutable     ceilYear(float $precision = 1)                                                                  Ceil the current instance year with given precision.
430
+ * @method        CarbonImmutable     ceilYears(float $precision = 1)                                                                 Ceil the current instance year with given precision.
431
+ * @method        CarbonImmutable     roundMonth(float $precision = 1, string $function = "round")                                    Round the current instance month with given precision using the given function.
432
+ * @method        CarbonImmutable     roundMonths(float $precision = 1, string $function = "round")                                   Round the current instance month with given precision using the given function.
433
+ * @method        CarbonImmutable     floorMonth(float $precision = 1)                                                                Truncate the current instance month with given precision.
434
+ * @method        CarbonImmutable     floorMonths(float $precision = 1)                                                               Truncate the current instance month with given precision.
435
+ * @method        CarbonImmutable     ceilMonth(float $precision = 1)                                                                 Ceil the current instance month with given precision.
436
+ * @method        CarbonImmutable     ceilMonths(float $precision = 1)                                                                Ceil the current instance month with given precision.
437
+ * @method        CarbonImmutable     roundDay(float $precision = 1, string $function = "round")                                      Round the current instance day with given precision using the given function.
438
+ * @method        CarbonImmutable     roundDays(float $precision = 1, string $function = "round")                                     Round the current instance day with given precision using the given function.
439
+ * @method        CarbonImmutable     floorDay(float $precision = 1)                                                                  Truncate the current instance day with given precision.
440
+ * @method        CarbonImmutable     floorDays(float $precision = 1)                                                                 Truncate the current instance day with given precision.
441
+ * @method        CarbonImmutable     ceilDay(float $precision = 1)                                                                   Ceil the current instance day with given precision.
442
+ * @method        CarbonImmutable     ceilDays(float $precision = 1)                                                                  Ceil the current instance day with given precision.
443
+ * @method        CarbonImmutable     roundHour(float $precision = 1, string $function = "round")                                     Round the current instance hour with given precision using the given function.
444
+ * @method        CarbonImmutable     roundHours(float $precision = 1, string $function = "round")                                    Round the current instance hour with given precision using the given function.
445
+ * @method        CarbonImmutable     floorHour(float $precision = 1)                                                                 Truncate the current instance hour with given precision.
446
+ * @method        CarbonImmutable     floorHours(float $precision = 1)                                                                Truncate the current instance hour with given precision.
447
+ * @method        CarbonImmutable     ceilHour(float $precision = 1)                                                                  Ceil the current instance hour with given precision.
448
+ * @method        CarbonImmutable     ceilHours(float $precision = 1)                                                                 Ceil the current instance hour with given precision.
449
+ * @method        CarbonImmutable     roundMinute(float $precision = 1, string $function = "round")                                   Round the current instance minute with given precision using the given function.
450
+ * @method        CarbonImmutable     roundMinutes(float $precision = 1, string $function = "round")                                  Round the current instance minute with given precision using the given function.
451
+ * @method        CarbonImmutable     floorMinute(float $precision = 1)                                                               Truncate the current instance minute with given precision.
452
+ * @method        CarbonImmutable     floorMinutes(float $precision = 1)                                                              Truncate the current instance minute with given precision.
453
+ * @method        CarbonImmutable     ceilMinute(float $precision = 1)                                                                Ceil the current instance minute with given precision.
454
+ * @method        CarbonImmutable     ceilMinutes(float $precision = 1)                                                               Ceil the current instance minute with given precision.
455
+ * @method        CarbonImmutable     roundSecond(float $precision = 1, string $function = "round")                                   Round the current instance second with given precision using the given function.
456
+ * @method        CarbonImmutable     roundSeconds(float $precision = 1, string $function = "round")                                  Round the current instance second with given precision using the given function.
457
+ * @method        CarbonImmutable     floorSecond(float $precision = 1)                                                               Truncate the current instance second with given precision.
458
+ * @method        CarbonImmutable     floorSeconds(float $precision = 1)                                                              Truncate the current instance second with given precision.
459
+ * @method        CarbonImmutable     ceilSecond(float $precision = 1)                                                                Ceil the current instance second with given precision.
460
+ * @method        CarbonImmutable     ceilSeconds(float $precision = 1)                                                               Ceil the current instance second with given precision.
461
+ * @method        CarbonImmutable     roundMillennium(float $precision = 1, string $function = "round")                               Round the current instance millennium with given precision using the given function.
462
+ * @method        CarbonImmutable     roundMillennia(float $precision = 1, string $function = "round")                                Round the current instance millennium with given precision using the given function.
463
+ * @method        CarbonImmutable     floorMillennium(float $precision = 1)                                                           Truncate the current instance millennium with given precision.
464
+ * @method        CarbonImmutable     floorMillennia(float $precision = 1)                                                            Truncate the current instance millennium with given precision.
465
+ * @method        CarbonImmutable     ceilMillennium(float $precision = 1)                                                            Ceil the current instance millennium with given precision.
466
+ * @method        CarbonImmutable     ceilMillennia(float $precision = 1)                                                             Ceil the current instance millennium with given precision.
467
+ * @method        CarbonImmutable     roundCentury(float $precision = 1, string $function = "round")                                  Round the current instance century with given precision using the given function.
468
+ * @method        CarbonImmutable     roundCenturies(float $precision = 1, string $function = "round")                                Round the current instance century with given precision using the given function.
469
+ * @method        CarbonImmutable     floorCentury(float $precision = 1)                                                              Truncate the current instance century with given precision.
470
+ * @method        CarbonImmutable     floorCenturies(float $precision = 1)                                                            Truncate the current instance century with given precision.
471
+ * @method        CarbonImmutable     ceilCentury(float $precision = 1)                                                               Ceil the current instance century with given precision.
472
+ * @method        CarbonImmutable     ceilCenturies(float $precision = 1)                                                             Ceil the current instance century with given precision.
473
+ * @method        CarbonImmutable     roundDecade(float $precision = 1, string $function = "round")                                   Round the current instance decade with given precision using the given function.
474
+ * @method        CarbonImmutable     roundDecades(float $precision = 1, string $function = "round")                                  Round the current instance decade with given precision using the given function.
475
+ * @method        CarbonImmutable     floorDecade(float $precision = 1)                                                               Truncate the current instance decade with given precision.
476
+ * @method        CarbonImmutable     floorDecades(float $precision = 1)                                                              Truncate the current instance decade with given precision.
477
+ * @method        CarbonImmutable     ceilDecade(float $precision = 1)                                                                Ceil the current instance decade with given precision.
478
+ * @method        CarbonImmutable     ceilDecades(float $precision = 1)                                                               Ceil the current instance decade with given precision.
479
+ * @method        CarbonImmutable     roundQuarter(float $precision = 1, string $function = "round")                                  Round the current instance quarter with given precision using the given function.
480
+ * @method        CarbonImmutable     roundQuarters(float $precision = 1, string $function = "round")                                 Round the current instance quarter with given precision using the given function.
481
+ * @method        CarbonImmutable     floorQuarter(float $precision = 1)                                                              Truncate the current instance quarter with given precision.
482
+ * @method        CarbonImmutable     floorQuarters(float $precision = 1)                                                             Truncate the current instance quarter with given precision.
483
+ * @method        CarbonImmutable     ceilQuarter(float $precision = 1)                                                               Ceil the current instance quarter with given precision.
484
+ * @method        CarbonImmutable     ceilQuarters(float $precision = 1)                                                              Ceil the current instance quarter with given precision.
485
+ * @method        CarbonImmutable     roundMillisecond(float $precision = 1, string $function = "round")                              Round the current instance millisecond with given precision using the given function.
486
+ * @method        CarbonImmutable     roundMilliseconds(float $precision = 1, string $function = "round")                             Round the current instance millisecond with given precision using the given function.
487
+ * @method        CarbonImmutable     floorMillisecond(float $precision = 1)                                                          Truncate the current instance millisecond with given precision.
488
+ * @method        CarbonImmutable     floorMilliseconds(float $precision = 1)                                                         Truncate the current instance millisecond with given precision.
489
+ * @method        CarbonImmutable     ceilMillisecond(float $precision = 1)                                                           Ceil the current instance millisecond with given precision.
490
+ * @method        CarbonImmutable     ceilMilliseconds(float $precision = 1)                                                          Ceil the current instance millisecond with given precision.
491
+ * @method        CarbonImmutable     roundMicrosecond(float $precision = 1, string $function = "round")                              Round the current instance microsecond with given precision using the given function.
492
+ * @method        CarbonImmutable     roundMicroseconds(float $precision = 1, string $function = "round")                             Round the current instance microsecond with given precision using the given function.
493
+ * @method        CarbonImmutable     floorMicrosecond(float $precision = 1)                                                          Truncate the current instance microsecond with given precision.
494
+ * @method        CarbonImmutable     floorMicroseconds(float $precision = 1)                                                         Truncate the current instance microsecond with given precision.
495
+ * @method        CarbonImmutable     ceilMicrosecond(float $precision = 1)                                                           Ceil the current instance microsecond with given precision.
496
+ * @method        CarbonImmutable     ceilMicroseconds(float $precision = 1)                                                          Ceil the current instance microsecond with given precision.
497
+ * @method        string              shortAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1)                     Get the difference (short format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
498
+ * @method        string              longAbsoluteDiffForHumans(DateTimeInterface $other = null, int $parts = 1)                      Get the difference (long format, 'Absolute' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
499
+ * @method        string              shortRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1)                     Get the difference (short format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
500
+ * @method        string              longRelativeDiffForHumans(DateTimeInterface $other = null, int $parts = 1)                      Get the difference (long format, 'Relative' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
501
+ * @method        string              shortRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1)                Get the difference (short format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
502
+ * @method        string              longRelativeToNowDiffForHumans(DateTimeInterface $other = null, int $parts = 1)                 Get the difference (long format, 'RelativeToNow' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
503
+ * @method        string              shortRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1)              Get the difference (short format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
504
+ * @method        string              longRelativeToOtherDiffForHumans(DateTimeInterface $other = null, int $parts = 1)               Get the difference (long format, 'RelativeToOther' mode) in a human readable format in the current locale. ($other and $parts parameters can be swapped.)
505
+ * @method        static static|false createFromFormat(string $format, string $time, DateTimeZone|string|false|null $timezone = null) Parse a string into a new CarbonImmutable object according to the specified format.
506
+ * @method        static static       __set_state(array $array)                                                                       https://php.net/manual/en/datetime.set-state.php
507
+ *
508
+ * </autodoc>
509
+ */
510
+class CarbonImmutable extends DateTimeImmutable implements CarbonInterface
511
+{
512
+    use Date {
513
+        __clone as dateTraitClone;
514
+    }
515
+
516
+    public function __clone()
517
+    {
518
+        $this->dateTraitClone();
519
+        $this->endOfTime = false;
520
+        $this->startOfTime = false;
521
+    }
522
+
523
+    /**
524
+     * Create a very old date representing start of time.
525
+     *
526
+     * @return static
527
+     */
528
+    public static function startOfTime(): self
529
+    {
530
+        $date = static::parse('0001-01-01')->years(self::getStartOfTimeYear());
531
+        $date->startOfTime = true;
532
+
533
+        return $date;
534
+    }
535
+
536
+    /**
537
+     * Create a very far date representing end of time.
538
+     *
539
+     * @return static
540
+     */
541
+    public static function endOfTime(): self
542
+    {
543
+        $date = static::parse('9999-12-31 23:59:59.999999')->years(self::getEndOfTimeYear());
544
+        $date->endOfTime = true;
545
+
546
+        return $date;
547
+    }
548
+
549
+    /**
550
+     * @codeCoverageIgnore
551
+     */
552
+    private static function getEndOfTimeYear(): int
553
+    {
554
+        if (version_compare(PHP_VERSION, '7.3.0-dev', '<')) {
555
+            return 145261681241552;
556
+        }
557
+
558
+        // Remove if https://bugs.php.net/bug.php?id=81107 is fixed
559
+        if (version_compare(PHP_VERSION, '8.1.0-dev', '>=')) {
560
+            return 1118290769066902787;
561
+        }
562
+
563
+        return PHP_INT_MAX;
564
+    }
565
+
566
+    /**
567
+     * @codeCoverageIgnore
568
+     */
569
+    private static function getStartOfTimeYear(): int
570
+    {
571
+        if (version_compare(PHP_VERSION, '7.3.0-dev', '<')) {
572
+            return -135908816449551;
573
+        }
574
+
575
+        // Remove if https://bugs.php.net/bug.php?id=81107 is fixed
576
+        if (version_compare(PHP_VERSION, '8.1.0-dev', '>=')) {
577
+            return -1118290769066898816;
578
+        }
579
+
580
+        return max(PHP_INT_MIN, -9223372036854773760);
581
+    }
582
+}

+ 5142
- 0
vendor/nesbot/carbon/src/Carbon/CarbonInterface.php
File diff suppressed because it is too large
View File


+ 3054
- 0
vendor/nesbot/carbon/src/Carbon/CarbonInterval.php
File diff suppressed because it is too large
View File


+ 2742
- 0
vendor/nesbot/carbon/src/Carbon/CarbonPeriod.php
File diff suppressed because it is too large
View File


+ 40
- 0
vendor/nesbot/carbon/src/Carbon/CarbonPeriodImmutable.php View File

@@ -0,0 +1,40 @@
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
+
12
+namespace Carbon;
13
+
14
+class CarbonPeriodImmutable extends CarbonPeriod
15
+{
16
+    /**
17
+     * Default date class of iteration items.
18
+     *
19
+     * @var string
20
+     */
21
+    protected const DEFAULT_DATE_CLASS = CarbonImmutable::class;
22
+
23
+    /**
24
+     * Date class of iteration items.
25
+     *
26
+     * @var string
27
+     */
28
+    protected $dateClass = CarbonImmutable::class;
29
+
30
+    /**
31
+     * Prepare the instance to be set (self if mutable to be mutated,
32
+     * copy if immutable to generate a new instance).
33
+     *
34
+     * @return static
35
+     */
36
+    protected function copyIfImmutable()
37
+    {
38
+        return $this->constructed ? clone $this : $this;
39
+    }
40
+}

+ 320
- 0
vendor/nesbot/carbon/src/Carbon/CarbonTimeZone.php View File

@@ -0,0 +1,320 @@
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
+
12
+namespace Carbon;
13
+
14
+use Carbon\Exceptions\InvalidCastException;
15
+use Carbon\Exceptions\InvalidTimeZoneException;
16
+use DateTimeInterface;
17
+use DateTimeZone;
18
+use Throwable;
19
+
20
+class CarbonTimeZone extends DateTimeZone
21
+{
22
+    public function __construct($timezone = null)
23
+    {
24
+        parent::__construct(static::getDateTimeZoneNameFromMixed($timezone));
25
+    }
26
+
27
+    protected static function parseNumericTimezone($timezone)
28
+    {
29
+        if ($timezone <= -100 || $timezone >= 100) {
30
+            throw new InvalidTimeZoneException('Absolute timezone offset cannot be greater than 100.');
31
+        }
32
+
33
+        return ($timezone >= 0 ? '+' : '').ltrim($timezone, '+').':00';
34
+    }
35
+
36
+    protected static function getDateTimeZoneNameFromMixed($timezone)
37
+    {
38
+        if ($timezone === null) {
39
+            return date_default_timezone_get();
40
+        }
41
+
42
+        if (\is_string($timezone)) {
43
+            $timezone = preg_replace('/^\s*([+-]\d+)(\d{2})\s*$/', '$1:$2', $timezone);
44
+        }
45
+
46
+        if (is_numeric($timezone)) {
47
+            return static::parseNumericTimezone($timezone);
48
+        }
49
+
50
+        return $timezone;
51
+    }
52
+
53
+    protected static function getDateTimeZoneFromName(&$name)
54
+    {
55
+        return @timezone_open($name = (string) static::getDateTimeZoneNameFromMixed($name));
56
+    }
57
+
58
+    /**
59
+     * Cast the current instance into the given class.
60
+     *
61
+     * @param string $className The $className::instance() method will be called to cast the current object.
62
+     *
63
+     * @return DateTimeZone
64
+     */
65
+    public function cast(string $className)
66
+    {
67
+        if (!method_exists($className, 'instance')) {
68
+            if (is_a($className, DateTimeZone::class, true)) {
69
+                return new $className($this->getName());
70
+            }
71
+
72
+            throw new InvalidCastException("$className has not the instance() method needed to cast the date.");
73
+        }
74
+
75
+        return $className::instance($this);
76
+    }
77
+
78
+    /**
79
+     * Create a CarbonTimeZone from mixed input.
80
+     *
81
+     * @param DateTimeZone|string|int|null $object     original value to get CarbonTimeZone from it.
82
+     * @param DateTimeZone|string|int|null $objectDump dump of the object for error messages.
83
+     *
84
+     * @throws InvalidTimeZoneException
85
+     *
86
+     * @return false|static
87
+     */
88
+    public static function instance($object = null, $objectDump = null)
89
+    {
90
+        $tz = $object;
91
+
92
+        if ($tz instanceof static) {
93
+            return $tz;
94
+        }
95
+
96
+        if ($tz === null) {
97
+            return new static();
98
+        }
99
+
100
+        if (!$tz instanceof DateTimeZone) {
101
+            $tz = static::getDateTimeZoneFromName($object);
102
+        }
103
+
104
+        if ($tz !== false) {
105
+            return new static($tz->getName());
106
+        }
107
+
108
+        if (Carbon::isStrictModeEnabled()) {
109
+            throw new InvalidTimeZoneException('Unknown or bad timezone ('.($objectDump ?: $object).')');
110
+        }
111
+
112
+        return false;
113
+    }
114
+
115
+    /**
116
+     * Returns abbreviated name of the current timezone according to DST setting.
117
+     *
118
+     * @param bool $dst
119
+     *
120
+     * @return string
121
+     */
122
+    public function getAbbreviatedName($dst = false)
123
+    {
124
+        $name = $this->getName();
125
+
126
+        foreach ($this->listAbbreviations() as $abbreviation => $zones) {
127
+            foreach ($zones as $zone) {
128
+                if ($zone['timezone_id'] === $name && $zone['dst'] == $dst) {
129
+                    return $abbreviation;
130
+                }
131
+            }
132
+        }
133
+
134
+        return 'unknown';
135
+    }
136
+
137
+    /**
138
+     * @alias getAbbreviatedName
139
+     *
140
+     * Returns abbreviated name of the current timezone according to DST setting.
141
+     *
142
+     * @param bool $dst
143
+     *
144
+     * @return string
145
+     */
146
+    public function getAbbr($dst = false)
147
+    {
148
+        return $this->getAbbreviatedName($dst);
149
+    }
150
+
151
+    /**
152
+     * Get the offset as string "sHH:MM" (such as "+00:00" or "-12:30").
153
+     *
154
+     * @param DateTimeInterface|null $date
155
+     *
156
+     * @return string
157
+     */
158
+    public function toOffsetName(DateTimeInterface $date = null)
159
+    {
160
+        return static::getOffsetNameFromMinuteOffset(
161
+            $this->getOffset($date ?: Carbon::now($this)) / 60
162
+        );
163
+    }
164
+
165
+    /**
166
+     * Returns a new CarbonTimeZone object using the offset string instead of region string.
167
+     *
168
+     * @param DateTimeInterface|null $date
169
+     *
170
+     * @return CarbonTimeZone
171
+     */
172
+    public function toOffsetTimeZone(DateTimeInterface $date = null)
173
+    {
174
+        return new static($this->toOffsetName($date));
175
+    }
176
+
177
+    /**
178
+     * Returns the first region string (such as "America/Toronto") that matches the current timezone or
179
+     * false if no match is found.
180
+     *
181
+     * @see timezone_name_from_abbr native PHP function.
182
+     *
183
+     * @param DateTimeInterface|null $date
184
+     * @param int                    $isDst
185
+     *
186
+     * @return string|false
187
+     */
188
+    public function toRegionName(DateTimeInterface $date = null, $isDst = 1)
189
+    {
190
+        $name = $this->getName();
191
+        $firstChar = substr($name, 0, 1);
192
+
193
+        if ($firstChar !== '+' && $firstChar !== '-') {
194
+            return $name;
195
+        }
196
+
197
+        $date = $date ?: Carbon::now($this);
198
+
199
+        // Integer construction no longer supported since PHP 8
200
+        // @codeCoverageIgnoreStart
201
+        try {
202
+            $offset = @$this->getOffset($date) ?: 0;
203
+        } catch (Throwable $e) {
204
+            $offset = 0;
205
+        }
206
+        // @codeCoverageIgnoreEnd
207
+
208
+        $name = @timezone_name_from_abbr('', $offset, $isDst);
209
+
210
+        if ($name) {
211
+            return $name;
212
+        }
213
+
214
+        foreach (timezone_identifiers_list() as $timezone) {
215
+            if (Carbon::instance($date)->tz($timezone)->getOffset() === $offset) {
216
+                return $timezone;
217
+            }
218
+        }
219
+
220
+        return false;
221
+    }
222
+
223
+    /**
224
+     * Returns a new CarbonTimeZone object using the region string instead of offset string.
225
+     *
226
+     * @param DateTimeInterface|null $date
227
+     *
228
+     * @return CarbonTimeZone|false
229
+     */
230
+    public function toRegionTimeZone(DateTimeInterface $date = null)
231
+    {
232
+        $tz = $this->toRegionName($date);
233
+
234
+        if ($tz !== false) {
235
+            return new static($tz);
236
+        }
237
+
238
+        if (Carbon::isStrictModeEnabled()) {
239
+            throw new InvalidTimeZoneException('Unknown timezone for offset '.$this->getOffset($date ?: Carbon::now($this)).' seconds.');
240
+        }
241
+
242
+        return false;
243
+    }
244
+
245
+    /**
246
+     * Cast to string (get timezone name).
247
+     *
248
+     * @return string
249
+     */
250
+    public function __toString()
251
+    {
252
+        return $this->getName();
253
+    }
254
+
255
+    /**
256
+     * Return the type number:
257
+     *
258
+     * Type 1; A UTC offset, such as -0300
259
+     * Type 2; A timezone abbreviation, such as GMT
260
+     * Type 3: A timezone identifier, such as Europe/London
261
+     */
262
+    public function getType(): int
263
+    {
264
+        return preg_match('/"timezone_type";i:(\d)/', serialize($this), $match) ? (int) $match[1] : 3;
265
+    }
266
+
267
+    /**
268
+     * Create a CarbonTimeZone from mixed input.
269
+     *
270
+     * @param DateTimeZone|string|int|null $object
271
+     *
272
+     * @return false|static
273
+     */
274
+    public static function create($object = null)
275
+    {
276
+        return static::instance($object);
277
+    }
278
+
279
+    /**
280
+     * Create a CarbonTimeZone from int/float hour offset.
281
+     *
282
+     * @param float $hourOffset number of hour of the timezone shift (can be decimal).
283
+     *
284
+     * @return false|static
285
+     */
286
+    public static function createFromHourOffset(float $hourOffset)
287
+    {
288
+        return static::createFromMinuteOffset($hourOffset * Carbon::MINUTES_PER_HOUR);
289
+    }
290
+
291
+    /**
292
+     * Create a CarbonTimeZone from int/float minute offset.
293
+     *
294
+     * @param float $minuteOffset number of total minutes of the timezone shift.
295
+     *
296
+     * @return false|static
297
+     */
298
+    public static function createFromMinuteOffset(float $minuteOffset)
299
+    {
300
+        return static::instance(static::getOffsetNameFromMinuteOffset($minuteOffset));
301
+    }
302
+
303
+    /**
304
+     * Convert a total minutes offset into a standardized timezone offset string.
305
+     *
306
+     * @param float $minutes number of total minutes of the timezone shift.
307
+     *
308
+     * @return string
309
+     */
310
+    public static function getOffsetNameFromMinuteOffset(float $minutes): string
311
+    {
312
+        $minutes = round($minutes);
313
+        $unsignedMinutes = abs($minutes);
314
+
315
+        return ($minutes < 0 ? '-' : '+').
316
+            str_pad((string) floor($unsignedMinutes / 60), 2, '0', STR_PAD_LEFT).
317
+            ':'.
318
+            str_pad((string) ($unsignedMinutes % 60), 2, '0', STR_PAD_LEFT);
319
+    }
320
+}

+ 38
- 0
vendor/nesbot/carbon/src/Carbon/Cli/Invoker.php View File

@@ -0,0 +1,38 @@
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
+
12
+namespace Carbon\Cli;
13
+
14
+class Invoker
15
+{
16
+    public const CLI_CLASS_NAME = 'Carbon\\Cli';
17
+
18
+    protected function runWithCli(string $className, array $parameters): bool
19
+    {
20
+        $cli = new $className();
21
+
22
+        return $cli(...$parameters);
23
+    }
24
+
25
+    public function __invoke(...$parameters): bool
26
+    {
27
+        if (class_exists(self::CLI_CLASS_NAME)) {
28
+            return $this->runWithCli(self::CLI_CLASS_NAME, $parameters);
29
+        }
30
+
31
+        $function = (($parameters[1] ?? '') === 'install' ? ($parameters[2] ?? null) : null) ?: 'shell_exec';
32
+        $function('composer require carbon-cli/carbon-cli --no-interaction');
33
+
34
+        echo 'Installation succeeded.';
35
+
36
+        return true;
37
+    }
38
+}

+ 48
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/BadComparisonUnitException.php View File

@@ -0,0 +1,48 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use Throwable;
15
+
16
+class BadComparisonUnitException extends UnitException
17
+{
18
+    /**
19
+     * The unit.
20
+     *
21
+     * @var string
22
+     */
23
+    protected $unit;
24
+
25
+    /**
26
+     * Constructor.
27
+     *
28
+     * @param string         $unit
29
+     * @param int            $code
30
+     * @param Throwable|null $previous
31
+     */
32
+    public function __construct($unit, $code = 0, Throwable $previous = null)
33
+    {
34
+        $this->unit = $unit;
35
+
36
+        parent::__construct("Bad comparison unit: '$unit'", $code, $previous);
37
+    }
38
+
39
+    /**
40
+     * Get the unit.
41
+     *
42
+     * @return string
43
+     */
44
+    public function getUnit(): string
45
+    {
46
+        return $this->unit;
47
+    }
48
+}

+ 49
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentConstructorException.php View File

@@ -0,0 +1,49 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use BadMethodCallException as BaseBadMethodCallException;
15
+use Throwable;
16
+
17
+class BadFluentConstructorException extends BaseBadMethodCallException implements BadMethodCallException
18
+{
19
+    /**
20
+     * The method.
21
+     *
22
+     * @var string
23
+     */
24
+    protected $method;
25
+
26
+    /**
27
+     * Constructor.
28
+     *
29
+     * @param string         $method
30
+     * @param int            $code
31
+     * @param Throwable|null $previous
32
+     */
33
+    public function __construct($method, $code = 0, Throwable $previous = null)
34
+    {
35
+        $this->method = $method;
36
+
37
+        parent::__construct(sprintf("Unknown fluent constructor '%s'.", $method), $code, $previous);
38
+    }
39
+
40
+    /**
41
+     * Get the method.
42
+     *
43
+     * @return string
44
+     */
45
+    public function getMethod(): string
46
+    {
47
+        return $this->method;
48
+    }
49
+}

+ 49
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/BadFluentSetterException.php View File

@@ -0,0 +1,49 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use BadMethodCallException as BaseBadMethodCallException;
15
+use Throwable;
16
+
17
+class BadFluentSetterException extends BaseBadMethodCallException implements BadMethodCallException
18
+{
19
+    /**
20
+     * The setter.
21
+     *
22
+     * @var string
23
+     */
24
+    protected $setter;
25
+
26
+    /**
27
+     * Constructor.
28
+     *
29
+     * @param string         $setter
30
+     * @param int            $code
31
+     * @param Throwable|null $previous
32
+     */
33
+    public function __construct($setter, $code = 0, Throwable $previous = null)
34
+    {
35
+        $this->setter = $setter;
36
+
37
+        parent::__construct(sprintf("Unknown fluent setter '%s'", $setter), $code, $previous);
38
+    }
39
+
40
+    /**
41
+     * Get the setter.
42
+     *
43
+     * @return string
44
+     */
45
+    public function getSetter(): string
46
+    {
47
+        return $this->setter;
48
+    }
49
+}

+ 17
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/BadMethodCallException.php View File

@@ -0,0 +1,17 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+interface BadMethodCallException extends Exception
15
+{
16
+    //
17
+}

+ 19
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/EndLessPeriodException.php View File

@@ -0,0 +1,19 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use RuntimeException as BaseRuntimeException;
15
+
16
+final class EndLessPeriodException extends BaseRuntimeException implements RuntimeException
17
+{
18
+    //
19
+}

+ 17
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/Exception.php View File

@@ -0,0 +1,17 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+interface Exception
15
+{
16
+    //
17
+}

+ 48
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/ImmutableException.php View File

@@ -0,0 +1,48 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use RuntimeException as BaseRuntimeException;
15
+use Throwable;
16
+
17
+class ImmutableException extends BaseRuntimeException implements RuntimeException
18
+{
19
+    /**
20
+     * The value.
21
+     *
22
+     * @var string
23
+     */
24
+    protected $value;
25
+
26
+    /**
27
+     * Constructor.
28
+     *
29
+     * @param string         $value    the immutable type/value
30
+     * @param int            $code
31
+     * @param Throwable|null $previous
32
+     */
33
+    public function __construct($value, $code = 0, Throwable $previous = null)
34
+    {
35
+        $this->value = $value;
36
+        parent::__construct("$value is immutable.", $code, $previous);
37
+    }
38
+
39
+    /**
40
+     * Get the value.
41
+     *
42
+     * @return string
43
+     */
44
+    public function getValue(): string
45
+    {
46
+        return $this->value;
47
+    }
48
+}

+ 17
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidArgumentException.php View File

@@ -0,0 +1,17 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+interface InvalidArgumentException extends Exception
15
+{
16
+    //
17
+}

+ 19
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidCastException.php View File

@@ -0,0 +1,19 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+
16
+class InvalidCastException extends BaseInvalidArgumentException implements InvalidArgumentException
17
+{
18
+    //
19
+}

+ 67
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidDateException.php View File

@@ -0,0 +1,67 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+use Throwable;
16
+
17
+class InvalidDateException extends BaseInvalidArgumentException implements InvalidArgumentException
18
+{
19
+    /**
20
+     * The invalid field.
21
+     *
22
+     * @var string
23
+     */
24
+    private $field;
25
+
26
+    /**
27
+     * The invalid value.
28
+     *
29
+     * @var mixed
30
+     */
31
+    private $value;
32
+
33
+    /**
34
+     * Constructor.
35
+     *
36
+     * @param string         $field
37
+     * @param mixed          $value
38
+     * @param int            $code
39
+     * @param Throwable|null $previous
40
+     */
41
+    public function __construct($field, $value, $code = 0, Throwable $previous = null)
42
+    {
43
+        $this->field = $field;
44
+        $this->value = $value;
45
+        parent::__construct($field.' : '.$value.' is not a valid value.', $code, $previous);
46
+    }
47
+
48
+    /**
49
+     * Get the invalid field.
50
+     *
51
+     * @return string
52
+     */
53
+    public function getField()
54
+    {
55
+        return $this->field;
56
+    }
57
+
58
+    /**
59
+     * Get the invalid value.
60
+     *
61
+     * @return mixed
62
+     */
63
+    public function getValue()
64
+    {
65
+        return $this->value;
66
+    }
67
+}

+ 19
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidFormatException.php View File

@@ -0,0 +1,19 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+
16
+class InvalidFormatException extends BaseInvalidArgumentException implements InvalidArgumentException
17
+{
18
+    //
19
+}

+ 19
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidIntervalException.php View File

@@ -0,0 +1,19 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+
16
+class InvalidIntervalException extends BaseInvalidArgumentException implements InvalidArgumentException
17
+{
18
+    //
19
+}

+ 19
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodDateException.php View File

@@ -0,0 +1,19 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+
16
+class InvalidPeriodDateException extends BaseInvalidArgumentException implements InvalidArgumentException
17
+{
18
+    //
19
+}

+ 19
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidPeriodParameterException.php View File

@@ -0,0 +1,19 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+
16
+class InvalidPeriodParameterException extends BaseInvalidArgumentException implements InvalidArgumentException
17
+{
18
+    //
19
+}

+ 19
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTimeZoneException.php View File

@@ -0,0 +1,19 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+
16
+class InvalidTimeZoneException extends BaseInvalidArgumentException implements InvalidArgumentException
17
+{
18
+    //
19
+}

+ 19
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/InvalidTypeException.php View File

@@ -0,0 +1,19 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+
16
+class InvalidTypeException extends BaseInvalidArgumentException implements InvalidArgumentException
17
+{
18
+    //
19
+}

+ 50
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/NotACarbonClassException.php View File

@@ -0,0 +1,50 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use Carbon\CarbonInterface;
15
+use InvalidArgumentException as BaseInvalidArgumentException;
16
+use Throwable;
17
+
18
+class NotACarbonClassException extends BaseInvalidArgumentException implements InvalidArgumentException
19
+{
20
+    /**
21
+     * The className.
22
+     *
23
+     * @var string
24
+     */
25
+    protected $className;
26
+
27
+    /**
28
+     * Constructor.
29
+     *
30
+     * @param string         $className
31
+     * @param int            $code
32
+     * @param Throwable|null $previous
33
+     */
34
+    public function __construct($className, $code = 0, Throwable $previous = null)
35
+    {
36
+        $this->className = $className;
37
+
38
+        parent::__construct(sprintf('Given class does not implement %s: %s', CarbonInterface::class, $className), $code, $previous);
39
+    }
40
+
41
+    /**
42
+     * Get the className.
43
+     *
44
+     * @return string
45
+     */
46
+    public function getClassName(): string
47
+    {
48
+        return $this->className;
49
+    }
50
+}

+ 19
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/NotAPeriodException.php View File

@@ -0,0 +1,19 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+
16
+class NotAPeriodException extends BaseInvalidArgumentException implements InvalidArgumentException
17
+{
18
+    //
19
+}

+ 32
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/NotLocaleAwareException.php View File

@@ -0,0 +1,32 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+use Throwable;
16
+
17
+class NotLocaleAwareException extends BaseInvalidArgumentException implements InvalidArgumentException
18
+{
19
+    /**
20
+     * Constructor.
21
+     *
22
+     * @param mixed          $object
23
+     * @param int            $code
24
+     * @param Throwable|null $previous
25
+     */
26
+    public function __construct($object, $code = 0, Throwable $previous = null)
27
+    {
28
+        $dump = \is_object($object) ? \get_class($object) : \gettype($object);
29
+
30
+        parent::__construct("$dump does neither implements Symfony\Contracts\Translation\LocaleAwareInterface nor getLocale() method.", $code, $previous);
31
+    }
32
+}

+ 101
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/OutOfRangeException.php View File

@@ -0,0 +1,101 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+use Throwable;
16
+
17
+// This will extends OutOfRangeException instead of InvalidArgumentException since 3.0.0
18
+// use OutOfRangeException as BaseOutOfRangeException;
19
+
20
+class OutOfRangeException extends BaseInvalidArgumentException implements InvalidArgumentException
21
+{
22
+    /**
23
+     * The unit or name of the value.
24
+     *
25
+     * @var string
26
+     */
27
+    private $unit;
28
+
29
+    /**
30
+     * The range minimum.
31
+     *
32
+     * @var mixed
33
+     */
34
+    private $min;
35
+
36
+    /**
37
+     * The range maximum.
38
+     *
39
+     * @var mixed
40
+     */
41
+    private $max;
42
+
43
+    /**
44
+     * The invalid value.
45
+     *
46
+     * @var mixed
47
+     */
48
+    private $value;
49
+
50
+    /**
51
+     * Constructor.
52
+     *
53
+     * @param string         $unit
54
+     * @param mixed          $min
55
+     * @param mixed          $max
56
+     * @param mixed          $value
57
+     * @param int            $code
58
+     * @param Throwable|null $previous
59
+     */
60
+    public function __construct($unit, $min, $max, $value, $code = 0, Throwable $previous = null)
61
+    {
62
+        $this->unit = $unit;
63
+        $this->min = $min;
64
+        $this->max = $max;
65
+        $this->value = $value;
66
+
67
+        parent::__construct("$unit must be between $min and $max, $value given", $code, $previous);
68
+    }
69
+
70
+    /**
71
+     * @return mixed
72
+     */
73
+    public function getMax()
74
+    {
75
+        return $this->max;
76
+    }
77
+
78
+    /**
79
+     * @return mixed
80
+     */
81
+    public function getMin()
82
+    {
83
+        return $this->min;
84
+    }
85
+
86
+    /**
87
+     * @return mixed
88
+     */
89
+    public function getUnit()
90
+    {
91
+        return $this->unit;
92
+    }
93
+
94
+    /**
95
+     * @return mixed
96
+     */
97
+    public function getValue()
98
+    {
99
+        return $this->value;
100
+    }
101
+}

+ 88
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/ParseErrorException.php View File

@@ -0,0 +1,88 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+use Throwable;
16
+
17
+class ParseErrorException extends BaseInvalidArgumentException implements InvalidArgumentException
18
+{
19
+    /**
20
+     * The expected.
21
+     *
22
+     * @var string
23
+     */
24
+    protected $expected;
25
+
26
+    /**
27
+     * The actual.
28
+     *
29
+     * @var string
30
+     */
31
+    protected $actual;
32
+
33
+    /**
34
+     * The help message.
35
+     *
36
+     * @var string
37
+     */
38
+    protected $help;
39
+
40
+    /**
41
+     * Constructor.
42
+     *
43
+     * @param string         $expected
44
+     * @param string         $actual
45
+     * @param int            $code
46
+     * @param Throwable|null $previous
47
+     */
48
+    public function __construct($expected, $actual, $help = '', $code = 0, Throwable $previous = null)
49
+    {
50
+        $this->expected = $expected;
51
+        $this->actual = $actual;
52
+        $this->help = $help;
53
+
54
+        $actual = $actual === '' ? 'data is missing' : "get '$actual'";
55
+
56
+        parent::__construct(trim("Format expected $expected but $actual\n$help"), $code, $previous);
57
+    }
58
+
59
+    /**
60
+     * Get the expected.
61
+     *
62
+     * @return string
63
+     */
64
+    public function getExpected(): string
65
+    {
66
+        return $this->expected;
67
+    }
68
+
69
+    /**
70
+     * Get the actual.
71
+     *
72
+     * @return string
73
+     */
74
+    public function getActual(): string
75
+    {
76
+        return $this->actual;
77
+    }
78
+
79
+    /**
80
+     * Get the help message.
81
+     *
82
+     * @return string
83
+     */
84
+    public function getHelp(): string
85
+    {
86
+        return $this->help;
87
+    }
88
+}

+ 17
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/RuntimeException.php View File

@@ -0,0 +1,17 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+interface RuntimeException extends Exception
15
+{
16
+    //
17
+}

+ 19
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/UnitException.php View File

@@ -0,0 +1,19 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+
16
+class UnitException extends BaseInvalidArgumentException implements InvalidArgumentException
17
+{
18
+    //
19
+}

+ 48
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/UnitNotConfiguredException.php View File

@@ -0,0 +1,48 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use Throwable;
15
+
16
+class UnitNotConfiguredException extends UnitException
17
+{
18
+    /**
19
+     * The unit.
20
+     *
21
+     * @var string
22
+     */
23
+    protected $unit;
24
+
25
+    /**
26
+     * Constructor.
27
+     *
28
+     * @param string         $unit
29
+     * @param int            $code
30
+     * @param Throwable|null $previous
31
+     */
32
+    public function __construct($unit, $code = 0, Throwable $previous = null)
33
+    {
34
+        $this->unit = $unit;
35
+
36
+        parent::__construct("Unit $unit have no configuration to get total from other units.", $code, $previous);
37
+    }
38
+
39
+    /**
40
+     * Get the unit.
41
+     *
42
+     * @return string
43
+     */
44
+    public function getUnit(): string
45
+    {
46
+        return $this->unit;
47
+    }
48
+}

+ 49
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownGetterException.php View File

@@ -0,0 +1,49 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+use Throwable;
16
+
17
+class UnknownGetterException extends BaseInvalidArgumentException implements InvalidArgumentException
18
+{
19
+    /**
20
+     * The getter.
21
+     *
22
+     * @var string
23
+     */
24
+    protected $getter;
25
+
26
+    /**
27
+     * Constructor.
28
+     *
29
+     * @param string         $getter   getter name
30
+     * @param int            $code
31
+     * @param Throwable|null $previous
32
+     */
33
+    public function __construct($getter, $code = 0, Throwable $previous = null)
34
+    {
35
+        $this->getter = $getter;
36
+
37
+        parent::__construct("Unknown getter '$getter'", $code, $previous);
38
+    }
39
+
40
+    /**
41
+     * Get the getter.
42
+     *
43
+     * @return string
44
+     */
45
+    public function getGetter(): string
46
+    {
47
+        return $this->getter;
48
+    }
49
+}

+ 49
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownMethodException.php View File

@@ -0,0 +1,49 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use BadMethodCallException as BaseBadMethodCallException;
15
+use Throwable;
16
+
17
+class UnknownMethodException extends BaseBadMethodCallException implements BadMethodCallException
18
+{
19
+    /**
20
+     * The method.
21
+     *
22
+     * @var string
23
+     */
24
+    protected $method;
25
+
26
+    /**
27
+     * Constructor.
28
+     *
29
+     * @param string         $method
30
+     * @param int            $code
31
+     * @param Throwable|null $previous
32
+     */
33
+    public function __construct($method, $code = 0, Throwable $previous = null)
34
+    {
35
+        $this->method = $method;
36
+
37
+        parent::__construct("Method $method does not exist.", $code, $previous);
38
+    }
39
+
40
+    /**
41
+     * Get the method.
42
+     *
43
+     * @return string
44
+     */
45
+    public function getMethod(): string
46
+    {
47
+        return $this->method;
48
+    }
49
+}

+ 49
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownSetterException.php View File

@@ -0,0 +1,49 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use InvalidArgumentException as BaseInvalidArgumentException;
15
+use Throwable;
16
+
17
+class UnknownSetterException extends BaseInvalidArgumentException implements BadMethodCallException
18
+{
19
+    /**
20
+     * The setter.
21
+     *
22
+     * @var string
23
+     */
24
+    protected $setter;
25
+
26
+    /**
27
+     * Constructor.
28
+     *
29
+     * @param string         $setter   setter name
30
+     * @param int            $code
31
+     * @param Throwable|null $previous
32
+     */
33
+    public function __construct($setter, $code = 0, Throwable $previous = null)
34
+    {
35
+        $this->setter = $setter;
36
+
37
+        parent::__construct("Unknown setter '$setter'", $code, $previous);
38
+    }
39
+
40
+    /**
41
+     * Get the setter.
42
+     *
43
+     * @return string
44
+     */
45
+    public function getSetter(): string
46
+    {
47
+        return $this->setter;
48
+    }
49
+}

+ 48
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/UnknownUnitException.php View File

@@ -0,0 +1,48 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use Throwable;
15
+
16
+class UnknownUnitException extends UnitException
17
+{
18
+    /**
19
+     * The unit.
20
+     *
21
+     * @var string
22
+     */
23
+    protected $unit;
24
+
25
+    /**
26
+     * Constructor.
27
+     *
28
+     * @param string         $unit
29
+     * @param int            $code
30
+     * @param Throwable|null $previous
31
+     */
32
+    public function __construct($unit, $code = 0, Throwable $previous = null)
33
+    {
34
+        $this->unit = $unit;
35
+
36
+        parent::__construct("Unknown unit '$unit'.", $code, $previous);
37
+    }
38
+
39
+    /**
40
+     * Get the unit.
41
+     *
42
+     * @return string
43
+     */
44
+    public function getUnit(): string
45
+    {
46
+        return $this->unit;
47
+    }
48
+}

+ 19
- 0
vendor/nesbot/carbon/src/Carbon/Exceptions/UnreachableException.php View File

@@ -0,0 +1,19 @@
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
+
12
+namespace Carbon\Exceptions;
13
+
14
+use RuntimeException as BaseRuntimeException;
15
+
16
+class UnreachableException extends BaseRuntimeException implements RuntimeException
17
+{
18
+    //
19
+}

+ 326
- 0
vendor/nesbot/carbon/src/Carbon/Factory.php View File

@@ -0,0 +1,326 @@
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
+
12
+namespace Carbon;
13
+
14
+use Closure;
15
+use DateTimeInterface;
16
+use ReflectionMethod;
17
+
18
+/**
19
+ * A factory to generate Carbon instances with common settings.
20
+ *
21
+ * <autodoc generated by `composer phpdoc`>
22
+ *
23
+ * @method bool                                               canBeCreatedFromFormat($date, $format)                                                                                       Checks if the (date)time string is in a given format and valid to create a
24
+ *                                                                                                                                                                                         new instance.
25
+ * @method Carbon|false                                       create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $tz = null)                                     Create a new Carbon instance from a specific date and time.
26
+ *                                                                                                                                                                                         If any of $year, $month or $day are set to null their now() values will
27
+ *                                                                                                                                                                                         be used.
28
+ *                                                                                                                                                                                         If $hour is null it will be set to its now() value and the default
29
+ *                                                                                                                                                                                         values for $minute and $second will be their now() values.
30
+ *                                                                                                                                                                                         If $hour is not null then the default values for $minute and $second
31
+ *                                                                                                                                                                                         will be 0.
32
+ * @method Carbon                                             createFromDate($year = null, $month = null, $day = null, $tz = null)                                                         Create a Carbon instance from just a date. The time portion is set to now.
33
+ * @method Carbon|false                                       createFromFormat($format, $time, $tz = null)                                                                                 Create a Carbon instance from a specific format.
34
+ * @method Carbon|false                                       createFromIsoFormat($format, $time, $tz = null, $locale = 'en', $translator = null)                                          Create a Carbon instance from a specific ISO format (same replacements as ->isoFormat()).
35
+ * @method Carbon|false                                       createFromLocaleFormat($format, $locale, $time, $tz = null)                                                                  Create a Carbon instance from a specific format and a string in a given language.
36
+ * @method Carbon|false                                       createFromLocaleIsoFormat($format, $locale, $time, $tz = null)                                                               Create a Carbon instance from a specific ISO format and a string in a given language.
37
+ * @method Carbon                                             createFromTime($hour = 0, $minute = 0, $second = 0, $tz = null)                                                              Create a Carbon instance from just a time. The date portion is set to today.
38
+ * @method Carbon                                             createFromTimeString($time, $tz = null)                                                                                      Create a Carbon instance from a time string. The date portion is set to today.
39
+ * @method Carbon                                             createFromTimestamp($timestamp, $tz = null)                                                                                  Create a Carbon instance from a timestamp and set the timezone (use default one if not specified).
40
+ *                                                                                                                                                                                         Timestamp input can be given as int, float or a string containing one or more numbers.
41
+ * @method Carbon                                             createFromTimestampMs($timestamp, $tz = null)                                                                                Create a Carbon instance from a timestamp in milliseconds.
42
+ *                                                                                                                                                                                         Timestamp input can be given as int, float or a string containing one or more numbers.
43
+ * @method Carbon                                             createFromTimestampMsUTC($timestamp)                                                                                         Create a Carbon instance from a timestamp in milliseconds.
44
+ *                                                                                                                                                                                         Timestamp input can be given as int, float or a string containing one or more numbers.
45
+ * @method Carbon                                             createFromTimestampUTC($timestamp)                                                                                           Create a Carbon instance from an timestamp keeping the timezone to UTC.
46
+ *                                                                                                                                                                                         Timestamp input can be given as int, float or a string containing one or more numbers.
47
+ * @method Carbon                                             createMidnightDate($year = null, $month = null, $day = null, $tz = null)                                                     Create a Carbon instance from just a date. The time portion is set to midnight.
48
+ * @method Carbon|false                                       createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $tz = null)               Create a new safe Carbon instance from a specific date and time.
49
+ *                                                                                                                                                                                         If any of $year, $month or $day are set to null their now() values will
50
+ *                                                                                                                                                                                         be used.
51
+ *                                                                                                                                                                                         If $hour is null it will be set to its now() value and the default
52
+ *                                                                                                                                                                                         values for $minute and $second will be their now() values.
53
+ *                                                                                                                                                                                         If $hour is not null then the default values for $minute and $second
54
+ *                                                                                                                                                                                         will be 0.
55
+ *                                                                                                                                                                                         If one of the set values is not valid, an InvalidDateException
56
+ *                                                                                                                                                                                         will be thrown.
57
+ * @method CarbonInterface                                    createStrict(?int $year = 0, ?int $month = 1, ?int $day = 1, ?int $hour = 0, ?int $minute = 0, ?int $second = 0, $tz = null) Create a new Carbon instance from a specific date and time using strict validation.
58
+ * @method Carbon                                             disableHumanDiffOption($humanDiffOption)                                                                                     @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
59
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
60
+ * @method Carbon                                             enableHumanDiffOption($humanDiffOption)                                                                                      @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
61
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
62
+ * @method mixed                                              executeWithLocale($locale, $func)                                                                                            Set the current locale to the given, execute the passed function, reset the locale to previous one,
63
+ *                                                                                                                                                                                         then return the result of the closure (or null if the closure was void).
64
+ * @method Carbon                                             fromSerialized($value)                                                                                                       Create an instance from a serialized string.
65
+ * @method void                                               genericMacro($macro, $priority = 0)                                                                                          Register a custom macro.
66
+ * @method array                                              getAvailableLocales()                                                                                                        Returns the list of internally available locales and already loaded custom locales.
67
+ *                                                                                                                                                                                         (It will ignore custom translator dynamic loading.)
68
+ * @method Language[]                                         getAvailableLocalesInfo()                                                                                                    Returns list of Language object for each available locale. This object allow you to get the ISO name, native
69
+ *                                                                                                                                                                                         name, region and variant of the locale.
70
+ * @method array                                              getDays()                                                                                                                    Get the days of the week
71
+ * @method string|null                                        getFallbackLocale()                                                                                                          Get the fallback locale.
72
+ * @method array                                              getFormatsToIsoReplacements()                                                                                                List of replacements from date() format to isoFormat().
73
+ * @method int                                                getHumanDiffOptions()                                                                                                        Return default humanDiff() options (merged flags as integer).
74
+ * @method array                                              getIsoUnits()                                                                                                                Returns list of locale units for ISO formatting.
75
+ * @method array                                              getLastErrors()                                                                                                              {@inheritdoc}
76
+ * @method string                                             getLocale()                                                                                                                  Get the current translator locale.
77
+ * @method callable|null                                      getMacro($name)                                                                                                              Get the raw callable macro registered globally for a given name.
78
+ * @method int                                                getMidDayAt()                                                                                                                get midday/noon hour
79
+ * @method Closure|Carbon                                     getTestNow()                                                                                                                 Get the Carbon instance (real or mock) to be returned when a "now"
80
+ *                                                                                                                                                                                         instance is created.
81
+ * @method string                                             getTimeFormatByPrecision($unitPrecision)                                                                                     Return a format from H:i to H:i:s.u according to given unit precision.
82
+ * @method string                                             getTranslationMessageWith($translator, string $key, ?string $locale = null, ?string $default = null)                         Returns raw translation message for a given key.
83
+ * @method \Symfony\Component\Translation\TranslatorInterface getTranslator()                                                                                                              Get the default translator instance in use.
84
+ * @method int                                                getWeekEndsAt()                                                                                                              Get the last day of week
85
+ * @method int                                                getWeekStartsAt()                                                                                                            Get the first day of week
86
+ * @method array                                              getWeekendDays()                                                                                                             Get weekend days
87
+ * @method bool                                               hasFormat($date, $format)                                                                                                    Checks if the (date)time string is in a given format.
88
+ * @method bool                                               hasFormatWithModifiers($date, $format)                                                                                       Checks if the (date)time string is in a given format.
89
+ * @method bool                                               hasMacro($name)                                                                                                              Checks if macro is registered globally.
90
+ * @method bool                                               hasRelativeKeywords($time)                                                                                                   Determine if a time string will produce a relative date.
91
+ * @method bool                                               hasTestNow()                                                                                                                 Determine if there is a valid test instance set. A valid test instance
92
+ *                                                                                                                                                                                         is anything that is not null.
93
+ * @method Carbon                                             instance($date)                                                                                                              Create a Carbon instance from a DateTime one.
94
+ * @method bool                                               isImmutable()                                                                                                                Returns true if the current class/instance is immutable.
95
+ * @method bool                                               isModifiableUnit($unit)                                                                                                      Returns true if a property can be changed via setter.
96
+ * @method bool                                               isMutable()                                                                                                                  Returns true if the current class/instance is mutable.
97
+ * @method bool                                               isStrictModeEnabled()                                                                                                        Returns true if the strict mode is globally in use, false else.
98
+ *                                                                                                                                                                                         (It can be overridden in specific instances.)
99
+ * @method bool                                               localeHasDiffOneDayWords($locale)                                                                                            Returns true if the given locale is internally supported and has words for 1-day diff (just now, yesterday, tomorrow).
100
+ *                                                                                                                                                                                         Support is considered enabled if the 3 words are translated in the given locale.
101
+ * @method bool                                               localeHasDiffSyntax($locale)                                                                                                 Returns true if the given locale is internally supported and has diff syntax support (ago, from now, before, after).
102
+ *                                                                                                                                                                                         Support is considered enabled if the 4 sentences are translated in the given locale.
103
+ * @method bool                                               localeHasDiffTwoDayWords($locale)                                                                                            Returns true if the given locale is internally supported and has words for 2-days diff (before yesterday, after tomorrow).
104
+ *                                                                                                                                                                                         Support is considered enabled if the 2 words are translated in the given locale.
105
+ * @method bool                                               localeHasPeriodSyntax($locale)                                                                                               Returns true if the given locale is internally supported and has period syntax support (X times, every X, from X, to X).
106
+ *                                                                                                                                                                                         Support is considered enabled if the 4 sentences are translated in the given locale.
107
+ * @method bool                                               localeHasShortUnits($locale)                                                                                                 Returns true if the given locale is internally supported and has short-units support.
108
+ *                                                                                                                                                                                         Support is considered enabled if either year, day or hour has a short variant translated.
109
+ * @method void                                               macro($name, $macro)                                                                                                         Register a custom macro.
110
+ * @method Carbon|null                                        make($var)                                                                                                                   Make a Carbon instance from given variable if possible.
111
+ *                                                                                                                                                                                         Always return a new instance. Parse only strings and only these likely to be dates (skip intervals
112
+ *                                                                                                                                                                                         and recurrences). Throw an exception for invalid format, but otherwise return null.
113
+ * @method Carbon                                             maxValue()                                                                                                                   Create a Carbon instance for the greatest supported date.
114
+ * @method Carbon                                             minValue()                                                                                                                   Create a Carbon instance for the lowest supported date.
115
+ * @method void                                               mixin($mixin)                                                                                                                Mix another object into the class.
116
+ * @method Carbon                                             now($tz = null)                                                                                                              Get a Carbon instance for the current date and time.
117
+ * @method Carbon                                             parse($time = null, $tz = null)                                                                                              Create a carbon instance from a string.
118
+ *                                                                                                                                                                                         This is an alias for the constructor that allows better fluent syntax
119
+ *                                                                                                                                                                                         as it allows you to do Carbon::parse('Monday next week')->fn() rather
120
+ *                                                                                                                                                                                         than (new Carbon('Monday next week'))->fn().
121
+ * @method Carbon                                             parseFromLocale($time, $locale = null, $tz = null)                                                                           Create a carbon instance from a localized string (in French, Japanese, Arabic, etc.).
122
+ * @method string                                             pluralUnit(string $unit)                                                                                                     Returns standardized plural of a given singular/plural unit name (in English).
123
+ * @method Carbon|false                                       rawCreateFromFormat($format, $time, $tz = null)                                                                              Create a Carbon instance from a specific format.
124
+ * @method Carbon                                             rawParse($time = null, $tz = null)                                                                                           Create a carbon instance from a string.
125
+ *                                                                                                                                                                                         This is an alias for the constructor that allows better fluent syntax
126
+ *                                                                                                                                                                                         as it allows you to do Carbon::parse('Monday next week')->fn() rather
127
+ *                                                                                                                                                                                         than (new Carbon('Monday next week'))->fn().
128
+ * @method Carbon                                             resetMacros()                                                                                                                Remove all macros and generic macros.
129
+ * @method void                                               resetMonthsOverflow()                                                                                                        @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
130
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
131
+ *                                                                                                                                                                                                     Or you can use method variants: addMonthsWithOverflow/addMonthsNoOverflow, same variants
132
+ *                                                                                                                                                                                                     are available for quarters, years, decade, centuries, millennia (singular and plural forms).
133
+ * @method void                                               resetToStringFormat()                                                                                                        Reset the format used to the default when type juggling a Carbon instance to a string
134
+ * @method void                                               resetYearsOverflow()                                                                                                         @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
135
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
136
+ *                                                                                                                                                                                                     Or you can use method variants: addYearsWithOverflow/addYearsNoOverflow, same variants
137
+ *                                                                                                                                                                                                     are available for quarters, years, decade, centuries, millennia (singular and plural forms).
138
+ * @method void                                               serializeUsing($callback)                                                                                                    @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
139
+ *                                                                                                                                                                                                     You should rather transform Carbon object before the serialization.
140
+ *                                                                                                                                                                                         JSON serialize all Carbon instances using the given callback.
141
+ * @method Carbon                                             setFallbackLocale($locale)                                                                                                   Set the fallback locale.
142
+ * @method Carbon                                             setHumanDiffOptions($humanDiffOptions)                                                                                       @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
143
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
144
+ * @method bool                                               setLocale($locale)                                                                                                           Set the current translator locale and indicate if the source locale file exists.
145
+ *                                                                                                                                                                                         Pass 'auto' as locale to use closest language from the current LC_TIME locale.
146
+ * @method void                                               setMidDayAt($hour)                                                                                                           @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
147
+ *                                                                                                                                                                                                     You should rather consider mid-day is always 12pm, then if you need to test if it's an other
148
+ *                                                                                                                                                                                                     hour, test it explicitly:
149
+ *                                                                                                                                                                                                         $date->format('G') == 13
150
+ *                                                                                                                                                                                                     or to set explicitly to a given hour:
151
+ *                                                                                                                                                                                                         $date->setTime(13, 0, 0, 0)
152
+ *                                                                                                                                                                                         Set midday/noon hour
153
+ * @method Carbon                                             setTestNow($testNow = null)                                                                                                  Set a Carbon instance (real or mock) to be returned when a "now"
154
+ *                                                                                                                                                                                         instance is created.  The provided instance will be returned
155
+ *                                                                                                                                                                                         specifically under the following conditions:
156
+ *                                                                                                                                                                                           - A call to the static now() method, ex. Carbon::now()
157
+ *                                                                                                                                                                                           - When a null (or blank string) is passed to the constructor or parse(), ex. new Carbon(null)
158
+ *                                                                                                                                                                                           - When the string "now" is passed to the constructor or parse(), ex. new Carbon('now')
159
+ *                                                                                                                                                                                           - When a string containing the desired time is passed to Carbon::parse().
160
+ *                                                                                                                                                                                         Note the timezone parameter was left out of the examples above and
161
+ *                                                                                                                                                                                         has no affect as the mock value will be returned regardless of its value.
162
+ *                                                                                                                                                                                         Only the moment is mocked with setTestNow(), the timezone will still be the one passed
163
+ *                                                                                                                                                                                         as parameter of date_default_timezone_get() as a fallback (see setTestNowAndTimezone()).
164
+ *                                                                                                                                                                                         To clear the test instance call this method using the default
165
+ *                                                                                                                                                                                         parameter of null.
166
+ *                                                                                                                                                                                         /!\ Use this method for unit tests only.
167
+ * @method Carbon                                             setTestNowAndTimezone($testNow = null, $tz = null)                                                                           Set a Carbon instance (real or mock) to be returned when a "now"
168
+ *                                                                                                                                                                                         instance is created.  The provided instance will be returned
169
+ *                                                                                                                                                                                         specifically under the following conditions:
170
+ *                                                                                                                                                                                           - A call to the static now() method, ex. Carbon::now()
171
+ *                                                                                                                                                                                           - When a null (or blank string) is passed to the constructor or parse(), ex. new Carbon(null)
172
+ *                                                                                                                                                                                           - When the string "now" is passed to the constructor or parse(), ex. new Carbon('now')
173
+ *                                                                                                                                                                                           - When a string containing the desired time is passed to Carbon::parse().
174
+ *                                                                                                                                                                                         It will also align default timezone (e.g. call date_default_timezone_set()) with
175
+ *                                                                                                                                                                                         the second argument or if null, with the timezone of the given date object.
176
+ *                                                                                                                                                                                         To clear the test instance call this method using the default
177
+ *                                                                                                                                                                                         parameter of null.
178
+ *                                                                                                                                                                                         /!\ Use this method for unit tests only.
179
+ * @method void                                               setToStringFormat($format)                                                                                                   @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
180
+ *                                                                                                                                                                                                     You should rather let Carbon object being cast to string with DEFAULT_TO_STRING_FORMAT, and
181
+ *                                                                                                                                                                                                     use other method or custom format passed to format() method if you need to dump another string
182
+ *                                                                                                                                                                                                     format.
183
+ *                                                                                                                                                                                         Set the default format used when type juggling a Carbon instance to a string.
184
+ * @method void                                               setTranslator(TranslatorInterface $translator)                                                                               Set the default translator instance to use.
185
+ * @method Carbon                                             setUtf8($utf8)                                                                                                               @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
186
+ *                                                                                                                                                                                                     You should rather use UTF-8 language packages on every machine.
187
+ *                                                                                                                                                                                         Set if UTF8 will be used for localized date/time.
188
+ * @method void                                               setWeekEndsAt($day)                                                                                                          @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
189
+ *                                                                                                                                                                                                     Use $weekStartsAt optional parameter instead when using startOfWeek, floorWeek, ceilWeek
190
+ *                                                                                                                                                                                                     or roundWeek method. You can also use the 'first_day_of_week' locale setting to change the
191
+ *                                                                                                                                                                                                     start of week according to current locale selected and implicitly the end of week.
192
+ *                                                                                                                                                                                         Set the last day of week
193
+ * @method void                                               setWeekStartsAt($day)                                                                                                        @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
194
+ *                                                                                                                                                                                                     Use $weekEndsAt optional parameter instead when using endOfWeek method. You can also use the
195
+ *                                                                                                                                                                                                     'first_day_of_week' locale setting to change the start of week according to current locale
196
+ *                                                                                                                                                                                                     selected and implicitly the end of week.
197
+ *                                                                                                                                                                                         Set the first day of week
198
+ * @method void                                               setWeekendDays($days)                                                                                                        @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
199
+ *                                                                                                                                                                                                     You should rather consider week-end is always saturday and sunday, and if you have some custom
200
+ *                                                                                                                                                                                                     week-end days to handle, give to those days an other name and create a macro for them:
201
+ *                                                                                                                                                                                                     ```
202
+ *                                                                                                                                                                                                     Carbon::macro('isDayOff', function ($date) {
203
+ *                                                                                                                                                                                                         return $date->isSunday() || $date->isMonday();
204
+ *                                                                                                                                                                                                     });
205
+ *                                                                                                                                                                                                     Carbon::macro('isNotDayOff', function ($date) {
206
+ *                                                                                                                                                                                                         return !$date->isDayOff();
207
+ *                                                                                                                                                                                                     });
208
+ *                                                                                                                                                                                                     if ($someDate->isDayOff()) ...
209
+ *                                                                                                                                                                                                     if ($someDate->isNotDayOff()) ...
210
+ *                                                                                                                                                                                                     // Add 5 not-off days
211
+ *                                                                                                                                                                                                     $count = 5;
212
+ *                                                                                                                                                                                                     while ($someDate->isDayOff() || ($count-- > 0)) {
213
+ *                                                                                                                                                                                                         $someDate->addDay();
214
+ *                                                                                                                                                                                                     }
215
+ *                                                                                                                                                                                                     ```
216
+ *                                                                                                                                                                                         Set weekend days
217
+ * @method bool                                               shouldOverflowMonths()                                                                                                       Get the month overflow global behavior (can be overridden in specific instances).
218
+ * @method bool                                               shouldOverflowYears()                                                                                                        Get the month overflow global behavior (can be overridden in specific instances).
219
+ * @method string                                             singularUnit(string $unit)                                                                                                   Returns standardized singular of a given singular/plural unit name (in English).
220
+ * @method Carbon                                             today($tz = null)                                                                                                            Create a Carbon instance for today.
221
+ * @method Carbon                                             tomorrow($tz = null)                                                                                                         Create a Carbon instance for tomorrow.
222
+ * @method string                                             translateTimeString($timeString, $from = null, $to = null, $mode = CarbonInterface::TRANSLATE_ALL)                           Translate a time string from a locale to an other.
223
+ * @method string                                             translateWith(TranslatorInterface $translator, string $key, array $parameters = [], $number = null)                          Translate using translation string or callback available.
224
+ * @method void                                               useMonthsOverflow($monthsOverflow = true)                                                                                    @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
225
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
226
+ *                                                                                                                                                                                                     Or you can use method variants: addMonthsWithOverflow/addMonthsNoOverflow, same variants
227
+ *                                                                                                                                                                                                     are available for quarters, years, decade, centuries, millennia (singular and plural forms).
228
+ * @method Carbon                                             useStrictMode($strictModeEnabled = true)                                                                                     @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
229
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
230
+ * @method void                                               useYearsOverflow($yearsOverflow = true)                                                                                      @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
231
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
232
+ *                                                                                                                                                                                                     Or you can use method variants: addYearsWithOverflow/addYearsNoOverflow, same variants
233
+ *                                                                                                                                                                                                     are available for quarters, years, decade, centuries, millennia (singular and plural forms).
234
+ * @method mixed                                              withTestNow($testNow, $callback)                                                                                             Temporarily sets a static date to be used within the callback.
235
+ *                                                                                                                                                                                         Using setTestNow to set the date, executing the callback, then
236
+ *                                                                                                                                                                                         clearing the test instance.
237
+ *                                                                                                                                                                                         /!\ Use this method for unit tests only.
238
+ * @method Carbon                                             yesterday($tz = null)                                                                                                        Create a Carbon instance for yesterday.
239
+ *
240
+ * </autodoc>
241
+ */
242
+class Factory
243
+{
244
+    protected $className = Carbon::class;
245
+
246
+    protected $settings = [];
247
+
248
+    public function __construct(array $settings = [], ?string $className = null)
249
+    {
250
+        if ($className) {
251
+            $this->className = $className;
252
+        }
253
+
254
+        $this->settings = $settings;
255
+    }
256
+
257
+    public function getClassName()
258
+    {
259
+        return $this->className;
260
+    }
261
+
262
+    public function setClassName(string $className)
263
+    {
264
+        $this->className = $className;
265
+
266
+        return $this;
267
+    }
268
+
269
+    public function className(string $className = null)
270
+    {
271
+        return $className === null ? $this->getClassName() : $this->setClassName($className);
272
+    }
273
+
274
+    public function getSettings()
275
+    {
276
+        return $this->settings;
277
+    }
278
+
279
+    public function setSettings(array $settings)
280
+    {
281
+        $this->settings = $settings;
282
+
283
+        return $this;
284
+    }
285
+
286
+    public function settings(array $settings = null)
287
+    {
288
+        return $settings === null ? $this->getSettings() : $this->setSettings($settings);
289
+    }
290
+
291
+    public function mergeSettings(array $settings)
292
+    {
293
+        $this->settings = array_merge($this->settings, $settings);
294
+
295
+        return $this;
296
+    }
297
+
298
+    public function __call($name, $arguments)
299
+    {
300
+        $method = new ReflectionMethod($this->className, $name);
301
+        $settings = $this->settings;
302
+
303
+        if ($settings && isset($settings['timezone'])) {
304
+            $tzParameters = array_filter($method->getParameters(), function ($parameter) {
305
+                return \in_array($parameter->getName(), ['tz', 'timezone'], true);
306
+            });
307
+
308
+            if (isset($arguments[0]) && \in_array($name, ['instance', 'make', 'create', 'parse'], true)) {
309
+                if ($arguments[0] instanceof DateTimeInterface) {
310
+                    $settings['innerTimezone'] = $settings['timezone'];
311
+                } elseif (\is_string($arguments[0]) && date_parse($arguments[0])['is_localtime']) {
312
+                    unset($settings['timezone'], $settings['innerTimezone']);
313
+                }
314
+            } elseif (\count($tzParameters)) {
315
+                array_splice($arguments, key($tzParameters), 0, [$settings['timezone']]);
316
+                unset($settings['timezone']);
317
+            }
318
+        }
319
+
320
+        $result = $this->className::$name(...$arguments);
321
+
322
+        return $result instanceof CarbonInterface && !empty($settings)
323
+            ? $result->settings($settings)
324
+            : $result;
325
+    }
326
+}

+ 259
- 0
vendor/nesbot/carbon/src/Carbon/FactoryImmutable.php View File

@@ -0,0 +1,259 @@
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
+
12
+namespace Carbon;
13
+
14
+use Closure;
15
+use DateTimeImmutable;
16
+use DateTimeZone;
17
+use Psr\Clock\ClockInterface;
18
+
19
+/**
20
+ * A factory to generate CarbonImmutable instances with common settings.
21
+ *
22
+ * <autodoc generated by `composer phpdoc`>
23
+ *
24
+ * @method bool                                               canBeCreatedFromFormat($date, $format)                                                                                       Checks if the (date)time string is in a given format and valid to create a
25
+ *                                                                                                                                                                                         new instance.
26
+ * @method CarbonImmutable|false                              create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $tz = null)                                     Create a new Carbon instance from a specific date and time.
27
+ *                                                                                                                                                                                         If any of $year, $month or $day are set to null their now() values will
28
+ *                                                                                                                                                                                         be used.
29
+ *                                                                                                                                                                                         If $hour is null it will be set to its now() value and the default
30
+ *                                                                                                                                                                                         values for $minute and $second will be their now() values.
31
+ *                                                                                                                                                                                         If $hour is not null then the default values for $minute and $second
32
+ *                                                                                                                                                                                         will be 0.
33
+ * @method CarbonImmutable                                    createFromDate($year = null, $month = null, $day = null, $tz = null)                                                         Create a Carbon instance from just a date. The time portion is set to now.
34
+ * @method CarbonImmutable|false                              createFromFormat($format, $time, $tz = null)                                                                                 Create a Carbon instance from a specific format.
35
+ * @method CarbonImmutable|false                              createFromIsoFormat($format, $time, $tz = null, $locale = 'en', $translator = null)                                          Create a Carbon instance from a specific ISO format (same replacements as ->isoFormat()).
36
+ * @method CarbonImmutable|false                              createFromLocaleFormat($format, $locale, $time, $tz = null)                                                                  Create a Carbon instance from a specific format and a string in a given language.
37
+ * @method CarbonImmutable|false                              createFromLocaleIsoFormat($format, $locale, $time, $tz = null)                                                               Create a Carbon instance from a specific ISO format and a string in a given language.
38
+ * @method CarbonImmutable                                    createFromTime($hour = 0, $minute = 0, $second = 0, $tz = null)                                                              Create a Carbon instance from just a time. The date portion is set to today.
39
+ * @method CarbonImmutable                                    createFromTimeString($time, $tz = null)                                                                                      Create a Carbon instance from a time string. The date portion is set to today.
40
+ * @method CarbonImmutable                                    createFromTimestamp($timestamp, $tz = null)                                                                                  Create a Carbon instance from a timestamp and set the timezone (use default one if not specified).
41
+ *                                                                                                                                                                                         Timestamp input can be given as int, float or a string containing one or more numbers.
42
+ * @method CarbonImmutable                                    createFromTimestampMs($timestamp, $tz = null)                                                                                Create a Carbon instance from a timestamp in milliseconds.
43
+ *                                                                                                                                                                                         Timestamp input can be given as int, float or a string containing one or more numbers.
44
+ * @method CarbonImmutable                                    createFromTimestampMsUTC($timestamp)                                                                                         Create a Carbon instance from a timestamp in milliseconds.
45
+ *                                                                                                                                                                                         Timestamp input can be given as int, float or a string containing one or more numbers.
46
+ * @method CarbonImmutable                                    createFromTimestampUTC($timestamp)                                                                                           Create a Carbon instance from an timestamp keeping the timezone to UTC.
47
+ *                                                                                                                                                                                         Timestamp input can be given as int, float or a string containing one or more numbers.
48
+ * @method CarbonImmutable                                    createMidnightDate($year = null, $month = null, $day = null, $tz = null)                                                     Create a Carbon instance from just a date. The time portion is set to midnight.
49
+ * @method CarbonImmutable|false                              createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $tz = null)               Create a new safe Carbon instance from a specific date and time.
50
+ *                                                                                                                                                                                         If any of $year, $month or $day are set to null their now() values will
51
+ *                                                                                                                                                                                         be used.
52
+ *                                                                                                                                                                                         If $hour is null it will be set to its now() value and the default
53
+ *                                                                                                                                                                                         values for $minute and $second will be their now() values.
54
+ *                                                                                                                                                                                         If $hour is not null then the default values for $minute and $second
55
+ *                                                                                                                                                                                         will be 0.
56
+ *                                                                                                                                                                                         If one of the set values is not valid, an InvalidDateException
57
+ *                                                                                                                                                                                         will be thrown.
58
+ * @method CarbonInterface                                    createStrict(?int $year = 0, ?int $month = 1, ?int $day = 1, ?int $hour = 0, ?int $minute = 0, ?int $second = 0, $tz = null) Create a new Carbon instance from a specific date and time using strict validation.
59
+ * @method CarbonImmutable                                    disableHumanDiffOption($humanDiffOption)                                                                                     @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
60
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
61
+ * @method CarbonImmutable                                    enableHumanDiffOption($humanDiffOption)                                                                                      @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
62
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
63
+ * @method mixed                                              executeWithLocale($locale, $func)                                                                                            Set the current locale to the given, execute the passed function, reset the locale to previous one,
64
+ *                                                                                                                                                                                         then return the result of the closure (or null if the closure was void).
65
+ * @method CarbonImmutable                                    fromSerialized($value)                                                                                                       Create an instance from a serialized string.
66
+ * @method void                                               genericMacro($macro, $priority = 0)                                                                                          Register a custom macro.
67
+ * @method array                                              getAvailableLocales()                                                                                                        Returns the list of internally available locales and already loaded custom locales.
68
+ *                                                                                                                                                                                         (It will ignore custom translator dynamic loading.)
69
+ * @method Language[]                                         getAvailableLocalesInfo()                                                                                                    Returns list of Language object for each available locale. This object allow you to get the ISO name, native
70
+ *                                                                                                                                                                                         name, region and variant of the locale.
71
+ * @method array                                              getDays()                                                                                                                    Get the days of the week
72
+ * @method string|null                                        getFallbackLocale()                                                                                                          Get the fallback locale.
73
+ * @method array                                              getFormatsToIsoReplacements()                                                                                                List of replacements from date() format to isoFormat().
74
+ * @method int                                                getHumanDiffOptions()                                                                                                        Return default humanDiff() options (merged flags as integer).
75
+ * @method array                                              getIsoUnits()                                                                                                                Returns list of locale units for ISO formatting.
76
+ * @method array                                              getLastErrors()                                                                                                              {@inheritdoc}
77
+ * @method string                                             getLocale()                                                                                                                  Get the current translator locale.
78
+ * @method callable|null                                      getMacro($name)                                                                                                              Get the raw callable macro registered globally for a given name.
79
+ * @method int                                                getMidDayAt()                                                                                                                get midday/noon hour
80
+ * @method Closure|CarbonImmutable                            getTestNow()                                                                                                                 Get the Carbon instance (real or mock) to be returned when a "now"
81
+ *                                                                                                                                                                                         instance is created.
82
+ * @method string                                             getTimeFormatByPrecision($unitPrecision)                                                                                     Return a format from H:i to H:i:s.u according to given unit precision.
83
+ * @method string                                             getTranslationMessageWith($translator, string $key, ?string $locale = null, ?string $default = null)                         Returns raw translation message for a given key.
84
+ * @method \Symfony\Component\Translation\TranslatorInterface getTranslator()                                                                                                              Get the default translator instance in use.
85
+ * @method int                                                getWeekEndsAt()                                                                                                              Get the last day of week
86
+ * @method int                                                getWeekStartsAt()                                                                                                            Get the first day of week
87
+ * @method array                                              getWeekendDays()                                                                                                             Get weekend days
88
+ * @method bool                                               hasFormat($date, $format)                                                                                                    Checks if the (date)time string is in a given format.
89
+ * @method bool                                               hasFormatWithModifiers($date, $format)                                                                                       Checks if the (date)time string is in a given format.
90
+ * @method bool                                               hasMacro($name)                                                                                                              Checks if macro is registered globally.
91
+ * @method bool                                               hasRelativeKeywords($time)                                                                                                   Determine if a time string will produce a relative date.
92
+ * @method bool                                               hasTestNow()                                                                                                                 Determine if there is a valid test instance set. A valid test instance
93
+ *                                                                                                                                                                                         is anything that is not null.
94
+ * @method CarbonImmutable                                    instance($date)                                                                                                              Create a Carbon instance from a DateTime one.
95
+ * @method bool                                               isImmutable()                                                                                                                Returns true if the current class/instance is immutable.
96
+ * @method bool                                               isModifiableUnit($unit)                                                                                                      Returns true if a property can be changed via setter.
97
+ * @method bool                                               isMutable()                                                                                                                  Returns true if the current class/instance is mutable.
98
+ * @method bool                                               isStrictModeEnabled()                                                                                                        Returns true if the strict mode is globally in use, false else.
99
+ *                                                                                                                                                                                         (It can be overridden in specific instances.)
100
+ * @method bool                                               localeHasDiffOneDayWords($locale)                                                                                            Returns true if the given locale is internally supported and has words for 1-day diff (just now, yesterday, tomorrow).
101
+ *                                                                                                                                                                                         Support is considered enabled if the 3 words are translated in the given locale.
102
+ * @method bool                                               localeHasDiffSyntax($locale)                                                                                                 Returns true if the given locale is internally supported and has diff syntax support (ago, from now, before, after).
103
+ *                                                                                                                                                                                         Support is considered enabled if the 4 sentences are translated in the given locale.
104
+ * @method bool                                               localeHasDiffTwoDayWords($locale)                                                                                            Returns true if the given locale is internally supported and has words for 2-days diff (before yesterday, after tomorrow).
105
+ *                                                                                                                                                                                         Support is considered enabled if the 2 words are translated in the given locale.
106
+ * @method bool                                               localeHasPeriodSyntax($locale)                                                                                               Returns true if the given locale is internally supported and has period syntax support (X times, every X, from X, to X).
107
+ *                                                                                                                                                                                         Support is considered enabled if the 4 sentences are translated in the given locale.
108
+ * @method bool                                               localeHasShortUnits($locale)                                                                                                 Returns true if the given locale is internally supported and has short-units support.
109
+ *                                                                                                                                                                                         Support is considered enabled if either year, day or hour has a short variant translated.
110
+ * @method void                                               macro($name, $macro)                                                                                                         Register a custom macro.
111
+ * @method CarbonImmutable|null                               make($var)                                                                                                                   Make a Carbon instance from given variable if possible.
112
+ *                                                                                                                                                                                         Always return a new instance. Parse only strings and only these likely to be dates (skip intervals
113
+ *                                                                                                                                                                                         and recurrences). Throw an exception for invalid format, but otherwise return null.
114
+ * @method CarbonImmutable                                    maxValue()                                                                                                                   Create a Carbon instance for the greatest supported date.
115
+ * @method CarbonImmutable                                    minValue()                                                                                                                   Create a Carbon instance for the lowest supported date.
116
+ * @method void                                               mixin($mixin)                                                                                                                Mix another object into the class.
117
+ * @method CarbonImmutable                                    parse($time = null, $tz = null)                                                                                              Create a carbon instance from a string.
118
+ *                                                                                                                                                                                         This is an alias for the constructor that allows better fluent syntax
119
+ *                                                                                                                                                                                         as it allows you to do Carbon::parse('Monday next week')->fn() rather
120
+ *                                                                                                                                                                                         than (new Carbon('Monday next week'))->fn().
121
+ * @method CarbonImmutable                                    parseFromLocale($time, $locale = null, $tz = null)                                                                           Create a carbon instance from a localized string (in French, Japanese, Arabic, etc.).
122
+ * @method string                                             pluralUnit(string $unit)                                                                                                     Returns standardized plural of a given singular/plural unit name (in English).
123
+ * @method CarbonImmutable|false                              rawCreateFromFormat($format, $time, $tz = null)                                                                              Create a Carbon instance from a specific format.
124
+ * @method CarbonImmutable                                    rawParse($time = null, $tz = null)                                                                                           Create a carbon instance from a string.
125
+ *                                                                                                                                                                                         This is an alias for the constructor that allows better fluent syntax
126
+ *                                                                                                                                                                                         as it allows you to do Carbon::parse('Monday next week')->fn() rather
127
+ *                                                                                                                                                                                         than (new Carbon('Monday next week'))->fn().
128
+ * @method CarbonImmutable                                    resetMacros()                                                                                                                Remove all macros and generic macros.
129
+ * @method void                                               resetMonthsOverflow()                                                                                                        @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
130
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
131
+ *                                                                                                                                                                                                     Or you can use method variants: addMonthsWithOverflow/addMonthsNoOverflow, same variants
132
+ *                                                                                                                                                                                                     are available for quarters, years, decade, centuries, millennia (singular and plural forms).
133
+ * @method void                                               resetToStringFormat()                                                                                                        Reset the format used to the default when type juggling a Carbon instance to a string
134
+ * @method void                                               resetYearsOverflow()                                                                                                         @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
135
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
136
+ *                                                                                                                                                                                                     Or you can use method variants: addYearsWithOverflow/addYearsNoOverflow, same variants
137
+ *                                                                                                                                                                                                     are available for quarters, years, decade, centuries, millennia (singular and plural forms).
138
+ * @method void                                               serializeUsing($callback)                                                                                                    @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
139
+ *                                                                                                                                                                                                     You should rather transform Carbon object before the serialization.
140
+ *                                                                                                                                                                                         JSON serialize all Carbon instances using the given callback.
141
+ * @method CarbonImmutable                                    setFallbackLocale($locale)                                                                                                   Set the fallback locale.
142
+ * @method CarbonImmutable                                    setHumanDiffOptions($humanDiffOptions)                                                                                       @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
143
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
144
+ * @method bool                                               setLocale($locale)                                                                                                           Set the current translator locale and indicate if the source locale file exists.
145
+ *                                                                                                                                                                                         Pass 'auto' as locale to use closest language from the current LC_TIME locale.
146
+ * @method void                                               setMidDayAt($hour)                                                                                                           @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
147
+ *                                                                                                                                                                                                     You should rather consider mid-day is always 12pm, then if you need to test if it's an other
148
+ *                                                                                                                                                                                                     hour, test it explicitly:
149
+ *                                                                                                                                                                                                         $date->format('G') == 13
150
+ *                                                                                                                                                                                                     or to set explicitly to a given hour:
151
+ *                                                                                                                                                                                                         $date->setTime(13, 0, 0, 0)
152
+ *                                                                                                                                                                                         Set midday/noon hour
153
+ * @method CarbonImmutable                                    setTestNow($testNow = null)                                                                                                  Set a Carbon instance (real or mock) to be returned when a "now"
154
+ *                                                                                                                                                                                         instance is created.  The provided instance will be returned
155
+ *                                                                                                                                                                                         specifically under the following conditions:
156
+ *                                                                                                                                                                                           - A call to the static now() method, ex. Carbon::now()
157
+ *                                                                                                                                                                                           - When a null (or blank string) is passed to the constructor or parse(), ex. new Carbon(null)
158
+ *                                                                                                                                                                                           - When the string "now" is passed to the constructor or parse(), ex. new Carbon('now')
159
+ *                                                                                                                                                                                           - When a string containing the desired time is passed to Carbon::parse().
160
+ *                                                                                                                                                                                         Note the timezone parameter was left out of the examples above and
161
+ *                                                                                                                                                                                         has no affect as the mock value will be returned regardless of its value.
162
+ *                                                                                                                                                                                         Only the moment is mocked with setTestNow(), the timezone will still be the one passed
163
+ *                                                                                                                                                                                         as parameter of date_default_timezone_get() as a fallback (see setTestNowAndTimezone()).
164
+ *                                                                                                                                                                                         To clear the test instance call this method using the default
165
+ *                                                                                                                                                                                         parameter of null.
166
+ *                                                                                                                                                                                         /!\ Use this method for unit tests only.
167
+ * @method CarbonImmutable                                    setTestNowAndTimezone($testNow = null, $tz = null)                                                                           Set a Carbon instance (real or mock) to be returned when a "now"
168
+ *                                                                                                                                                                                         instance is created.  The provided instance will be returned
169
+ *                                                                                                                                                                                         specifically under the following conditions:
170
+ *                                                                                                                                                                                           - A call to the static now() method, ex. Carbon::now()
171
+ *                                                                                                                                                                                           - When a null (or blank string) is passed to the constructor or parse(), ex. new Carbon(null)
172
+ *                                                                                                                                                                                           - When the string "now" is passed to the constructor or parse(), ex. new Carbon('now')
173
+ *                                                                                                                                                                                           - When a string containing the desired time is passed to Carbon::parse().
174
+ *                                                                                                                                                                                         It will also align default timezone (e.g. call date_default_timezone_set()) with
175
+ *                                                                                                                                                                                         the second argument or if null, with the timezone of the given date object.
176
+ *                                                                                                                                                                                         To clear the test instance call this method using the default
177
+ *                                                                                                                                                                                         parameter of null.
178
+ *                                                                                                                                                                                         /!\ Use this method for unit tests only.
179
+ * @method void                                               setToStringFormat($format)                                                                                                   @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
180
+ *                                                                                                                                                                                                     You should rather let Carbon object being cast to string with DEFAULT_TO_STRING_FORMAT, and
181
+ *                                                                                                                                                                                                     use other method or custom format passed to format() method if you need to dump another string
182
+ *                                                                                                                                                                                                     format.
183
+ *                                                                                                                                                                                         Set the default format used when type juggling a Carbon instance to a string.
184
+ * @method void                                               setTranslator(TranslatorInterface $translator)                                                                               Set the default translator instance to use.
185
+ * @method CarbonImmutable                                    setUtf8($utf8)                                                                                                               @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
186
+ *                                                                                                                                                                                                     You should rather use UTF-8 language packages on every machine.
187
+ *                                                                                                                                                                                         Set if UTF8 will be used for localized date/time.
188
+ * @method void                                               setWeekEndsAt($day)                                                                                                          @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
189
+ *                                                                                                                                                                                                     Use $weekStartsAt optional parameter instead when using startOfWeek, floorWeek, ceilWeek
190
+ *                                                                                                                                                                                                     or roundWeek method. You can also use the 'first_day_of_week' locale setting to change the
191
+ *                                                                                                                                                                                                     start of week according to current locale selected and implicitly the end of week.
192
+ *                                                                                                                                                                                         Set the last day of week
193
+ * @method void                                               setWeekStartsAt($day)                                                                                                        @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
194
+ *                                                                                                                                                                                                     Use $weekEndsAt optional parameter instead when using endOfWeek method. You can also use the
195
+ *                                                                                                                                                                                                     'first_day_of_week' locale setting to change the start of week according to current locale
196
+ *                                                                                                                                                                                                     selected and implicitly the end of week.
197
+ *                                                                                                                                                                                         Set the first day of week
198
+ * @method void                                               setWeekendDays($days)                                                                                                        @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
199
+ *                                                                                                                                                                                                     You should rather consider week-end is always saturday and sunday, and if you have some custom
200
+ *                                                                                                                                                                                                     week-end days to handle, give to those days an other name and create a macro for them:
201
+ *                                                                                                                                                                                                     ```
202
+ *                                                                                                                                                                                                     Carbon::macro('isDayOff', function ($date) {
203
+ *                                                                                                                                                                                                         return $date->isSunday() || $date->isMonday();
204
+ *                                                                                                                                                                                                     });
205
+ *                                                                                                                                                                                                     Carbon::macro('isNotDayOff', function ($date) {
206
+ *                                                                                                                                                                                                         return !$date->isDayOff();
207
+ *                                                                                                                                                                                                     });
208
+ *                                                                                                                                                                                                     if ($someDate->isDayOff()) ...
209
+ *                                                                                                                                                                                                     if ($someDate->isNotDayOff()) ...
210
+ *                                                                                                                                                                                                     // Add 5 not-off days
211
+ *                                                                                                                                                                                                     $count = 5;
212
+ *                                                                                                                                                                                                     while ($someDate->isDayOff() || ($count-- > 0)) {
213
+ *                                                                                                                                                                                                         $someDate->addDay();
214
+ *                                                                                                                                                                                                     }
215
+ *                                                                                                                                                                                                     ```
216
+ *                                                                                                                                                                                         Set weekend days
217
+ * @method bool                                               shouldOverflowMonths()                                                                                                       Get the month overflow global behavior (can be overridden in specific instances).
218
+ * @method bool                                               shouldOverflowYears()                                                                                                        Get the month overflow global behavior (can be overridden in specific instances).
219
+ * @method string                                             singularUnit(string $unit)                                                                                                   Returns standardized singular of a given singular/plural unit name (in English).
220
+ * @method CarbonImmutable                                    today($tz = null)                                                                                                            Create a Carbon instance for today.
221
+ * @method CarbonImmutable                                    tomorrow($tz = null)                                                                                                         Create a Carbon instance for tomorrow.
222
+ * @method string                                             translateTimeString($timeString, $from = null, $to = null, $mode = CarbonInterface::TRANSLATE_ALL)                           Translate a time string from a locale to an other.
223
+ * @method string                                             translateWith(TranslatorInterface $translator, string $key, array $parameters = [], $number = null)                          Translate using translation string or callback available.
224
+ * @method void                                               useMonthsOverflow($monthsOverflow = true)                                                                                    @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
225
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
226
+ *                                                                                                                                                                                                     Or you can use method variants: addMonthsWithOverflow/addMonthsNoOverflow, same variants
227
+ *                                                                                                                                                                                                     are available for quarters, years, decade, centuries, millennia (singular and plural forms).
228
+ * @method CarbonImmutable                                    useStrictMode($strictModeEnabled = true)                                                                                     @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
229
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
230
+ * @method void                                               useYearsOverflow($yearsOverflow = true)                                                                                      @deprecated To avoid conflict between different third-party libraries, static setters should not be used.
231
+ *                                                                                                                                                                                                     You should rather use the ->settings() method.
232
+ *                                                                                                                                                                                                     Or you can use method variants: addYearsWithOverflow/addYearsNoOverflow, same variants
233
+ *                                                                                                                                                                                                     are available for quarters, years, decade, centuries, millennia (singular and plural forms).
234
+ * @method mixed                                              withTestNow($testNow, $callback)                                                                                             Temporarily sets a static date to be used within the callback.
235
+ *                                                                                                                                                                                         Using setTestNow to set the date, executing the callback, then
236
+ *                                                                                                                                                                                         clearing the test instance.
237
+ *                                                                                                                                                                                         /!\ Use this method for unit tests only.
238
+ * @method CarbonImmutable                                    yesterday($tz = null)                                                                                                        Create a Carbon instance for yesterday.
239
+ *
240
+ * </autodoc>
241
+ */
242
+class FactoryImmutable extends Factory implements ClockInterface
243
+{
244
+    protected $className = CarbonImmutable::class;
245
+
246
+    /**
247
+     * Get a Carbon instance for the current date and time.
248
+     *
249
+     * @param DateTimeZone|string|int|null $tz
250
+     *
251
+     * @return CarbonImmutable
252
+     */
253
+    public function now($tz = null): DateTimeImmutable
254
+    {
255
+        $className = $this->className;
256
+
257
+        return new $className(null, $tz);
258
+    }
259
+}

+ 15
- 0
vendor/nesbot/carbon/src/Carbon/Lang/aa.php View File

@@ -0,0 +1,15 @@
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
+
12
+/*
13
+ * Unknown default region, use the first alphabetically.
14
+ */
15
+return require __DIR__.'/aa_DJ.php';

+ 44
- 0
vendor/nesbot/carbon/src/Carbon/Lang/aa_DJ.php View File

@@ -0,0 +1,44 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - Ge'ez Frontier Foundation    locales@geez.org
15
+ */
16
+return array_replace_recursive(require __DIR__.'/en.php', [
17
+    'formats' => [
18
+        'L' => 'DD.MM.YYYY',
19
+    ],
20
+    'months' => ['Qunxa Garablu', 'Kudo', 'Ciggilta Kudo', 'Agda Baxisso', 'Caxah Alsa', 'Qasa Dirri', 'Qado Dirri', 'Liiqen', 'Waysu', 'Diteli', 'Ximoli', 'Kaxxa Garablu'],
21
+    'months_short' => ['qun', 'nah', 'cig', 'agd', 'cax', 'qas', 'qad', 'leq', 'way', 'dit', 'xim', 'kax'],
22
+    'weekdays' => ['Acaada', 'Etleeni', 'Talaata', 'Arbaqa', 'Kamiisi', 'Gumqata', 'Sabti'],
23
+    'weekdays_short' => ['aca', 'etl', 'tal', 'arb', 'kam', 'gum', 'sab'],
24
+    'weekdays_min' => ['aca', 'etl', 'tal', 'arb', 'kam', 'gum', 'sab'],
25
+    'first_day_of_week' => 6,
26
+    'day_of_first_week_of_year' => 1,
27
+    'meridiem' => ['saaku', 'carra'],
28
+
29
+    'year' => ':count gaqambo', // less reliable
30
+    'y' => ':count gaqambo', // less reliable
31
+    'a_year' => ':count gaqambo', // less reliable
32
+
33
+    'month' => ':count àlsa',
34
+    'm' => ':count àlsa',
35
+    'a_month' => ':count àlsa',
36
+
37
+    'day' => ':count saaku', // less reliable
38
+    'd' => ':count saaku', // less reliable
39
+    'a_day' => ':count saaku', // less reliable
40
+
41
+    'hour' => ':count ayti', // less reliable
42
+    'h' => ':count ayti', // less reliable
43
+    'a_hour' => ':count ayti', // less reliable
44
+]);

+ 28
- 0
vendor/nesbot/carbon/src/Carbon/Lang/aa_ER.php View File

@@ -0,0 +1,28 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - Ge'ez Frontier Foundation    locales@geez.org
15
+ */
16
+return array_replace_recursive(require __DIR__.'/en.php', [
17
+    'formats' => [
18
+        'L' => 'DD/MM/YYYY',
19
+    ],
20
+    'months' => ['Qunxa Garablu', 'Naharsi Kudo', 'Ciggilta Kudo', 'Agda Baxisso', 'Caxah Alsa', 'Qasa Dirri', 'Qado Dirri', 'Leqeeni', 'Waysu', 'Diteli', 'Ximoli', 'Kaxxa Garablu'],
21
+    'months_short' => ['Qun', 'Nah', 'Cig', 'Agd', 'Cax', 'Qas', 'Qad', 'Leq', 'Way', 'Dit', 'Xim', 'Kax'],
22
+    'weekdays' => ['Acaada', 'Etleeni', 'Talaata', 'Arbaqa', 'Kamiisi', 'Gumqata', 'Sabti'],
23
+    'weekdays_short' => ['Aca', 'Etl', 'Tal', 'Arb', 'Kam', 'Gum', 'Sab'],
24
+    'weekdays_min' => ['Aca', 'Etl', 'Tal', 'Arb', 'Kam', 'Gum', 'Sab'],
25
+    'first_day_of_week' => 1,
26
+    'day_of_first_week_of_year' => 1,
27
+    'meridiem' => ['saaku', 'carra'],
28
+]);

+ 28
- 0
vendor/nesbot/carbon/src/Carbon/Lang/aa_ER@saaho.php View File

@@ -0,0 +1,28 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - Ge'ez Frontier Foundation    locales@geez.org
15
+ */
16
+return array_replace_recursive(require __DIR__.'/en.php', [
17
+    'formats' => [
18
+        'L' => 'DD/MM/YYYY',
19
+    ],
20
+    'months' => ['Qunxa Garablu', 'Naharsi Kudo', 'Ciggilta Kudo', 'Agda Baxisso', 'Caxah Alsa', 'Qasa Dirri', 'Qado Dirri', 'Leqeeni', 'Waysu', 'Diteli', 'Ximoli', 'Kaxxa Garablu'],
21
+    'months_short' => ['Qun', 'Nah', 'Cig', 'Agd', 'Cax', 'Qas', 'Qad', 'Leq', 'Way', 'Dit', 'Xim', 'Kax'],
22
+    'weekdays' => ['Naba Sambat', 'Sani', 'Salus', 'Rabuq', 'Camus', 'Jumqata', 'Qunxa Sambat'],
23
+    'weekdays_short' => ['Nab', 'San', 'Sal', 'Rab', 'Cam', 'Jum', 'Qun'],
24
+    'weekdays_min' => ['Nab', 'San', 'Sal', 'Rab', 'Cam', 'Jum', 'Qun'],
25
+    'first_day_of_week' => 1,
26
+    'day_of_first_week_of_year' => 1,
27
+    'meridiem' => ['saaku', 'carra'],
28
+]);

+ 27
- 0
vendor/nesbot/carbon/src/Carbon/Lang/aa_ET.php View File

@@ -0,0 +1,27 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - Ge'ez Frontier Foundation    locales@geez.org
15
+ */
16
+return array_replace_recursive(require __DIR__.'/en.php', [
17
+    'formats' => [
18
+        'L' => 'DD/MM/YYYY',
19
+    ],
20
+    'months' => ['Qunxa Garablu', 'Kudo', 'Ciggilta Kudo', 'Agda Baxisso', 'Caxah Alsa', 'Qasa Dirri', 'Qado Dirri', 'Liiqen', 'Waysu', 'Diteli', 'Ximoli', 'Kaxxa Garablu'],
21
+    'months_short' => ['Qun', 'Kud', 'Cig', 'Agd', 'Cax', 'Qas', 'Qad', 'Leq', 'Way', 'Dit', 'Xim', 'Kax'],
22
+    'weekdays' => ['Acaada', 'Etleeni', 'Talaata', 'Arbaqa', 'Kamiisi', 'Gumqata', 'Sabti'],
23
+    'weekdays_short' => ['Aca', 'Etl', 'Tal', 'Arb', 'Kam', 'Gum', 'Sab'],
24
+    'weekdays_min' => ['Aca', 'Etl', 'Tal', 'Arb', 'Kam', 'Gum', 'Sab'],
25
+    'day_of_first_week_of_year' => 1,
26
+    'meridiem' => ['saaku', 'carra'],
27
+]);

+ 79
- 0
vendor/nesbot/carbon/src/Carbon/Lang/af.php View File

@@ -0,0 +1,79 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - François B
15
+ * - JD Isaacks
16
+ * - Pierre du Plessis
17
+ */
18
+return [
19
+    'year' => ':count jaar',
20
+    'a_year' => '\'n jaar|:count jaar',
21
+    'y' => ':count j.',
22
+    'month' => ':count maand|:count maande',
23
+    'a_month' => '\'n maand|:count maande',
24
+    'm' => ':count maa.',
25
+    'week' => ':count week|:count weke',
26
+    'a_week' => '\'n week|:count weke',
27
+    'w' => ':count w.',
28
+    'day' => ':count dag|:count dae',
29
+    'a_day' => '\'n dag|:count dae',
30
+    'd' => ':count d.',
31
+    'hour' => ':count uur',
32
+    'a_hour' => '\'n uur|:count uur',
33
+    'h' => ':count u.',
34
+    'minute' => ':count minuut|:count minute',
35
+    'a_minute' => '\'n minuut|:count minute',
36
+    'min' => ':count min.',
37
+    'second' => ':count sekond|:count sekondes',
38
+    'a_second' => '\'n paar sekondes|:count sekondes',
39
+    's' => ':count s.',
40
+    'ago' => ':time gelede',
41
+    'from_now' => 'oor :time',
42
+    'after' => ':time na',
43
+    'before' => ':time voor',
44
+    'diff_now' => 'Nou',
45
+    'diff_today' => 'Vandag',
46
+    'diff_today_regexp' => 'Vandag(?:\\s+om)?',
47
+    'diff_yesterday' => 'Gister',
48
+    'diff_yesterday_regexp' => 'Gister(?:\\s+om)?',
49
+    'diff_tomorrow' => 'Môre',
50
+    'diff_tomorrow_regexp' => 'Môre(?:\\s+om)?',
51
+    'formats' => [
52
+        'LT' => 'HH:mm',
53
+        'LTS' => 'HH:mm:ss',
54
+        'L' => 'DD/MM/YYYY',
55
+        'LL' => 'D MMMM YYYY',
56
+        'LLL' => 'D MMMM YYYY HH:mm',
57
+        'LLLL' => 'dddd, D MMMM YYYY HH:mm',
58
+    ],
59
+    'calendar' => [
60
+        'sameDay' => '[Vandag om] LT',
61
+        'nextDay' => '[Môre om] LT',
62
+        'nextWeek' => 'dddd [om] LT',
63
+        'lastDay' => '[Gister om] LT',
64
+        'lastWeek' => '[Laas] dddd [om] LT',
65
+        'sameElse' => 'L',
66
+    ],
67
+    'ordinal' => function ($number) {
68
+        return $number.(($number === 1 || $number === 8 || $number >= 20) ? 'ste' : 'de');
69
+    },
70
+    'meridiem' => ['VM', 'NM'],
71
+    'months' => ['Januarie', 'Februarie', 'Maart', 'April', 'Mei', 'Junie', 'Julie', 'Augustus', 'September', 'Oktober', 'November', 'Desember'],
72
+    'months_short' => ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
73
+    'weekdays' => ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'],
74
+    'weekdays_short' => ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'],
75
+    'weekdays_min' => ['So', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Sa'],
76
+    'first_day_of_week' => 1,
77
+    'day_of_first_week_of_year' => 4,
78
+    'list' => [', ', ' en '],
79
+];

+ 28
- 0
vendor/nesbot/carbon/src/Carbon/Lang/af_NA.php View File

@@ -0,0 +1,28 @@
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
+
12
+return array_replace_recursive(require __DIR__.'/af.php', [
13
+    'meridiem' => ['v', 'n'],
14
+    'weekdays' => ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'],
15
+    'weekdays_short' => ['So.', 'Ma.', 'Di.', 'Wo.', 'Do.', 'Vr.', 'Sa.'],
16
+    'weekdays_min' => ['So.', 'Ma.', 'Di.', 'Wo.', 'Do.', 'Vr.', 'Sa.'],
17
+    'months' => ['Januarie', 'Februarie', 'Maart', 'April', 'Mei', 'Junie', 'Julie', 'Augustus', 'September', 'Oktober', 'November', 'Desember'],
18
+    'months_short' => ['Jan.', 'Feb.', 'Mrt.', 'Apr.', 'Mei', 'Jun.', 'Jul.', 'Aug.', 'Sep.', 'Okt.', 'Nov.', 'Des.'],
19
+    'first_day_of_week' => 1,
20
+    'formats' => [
21
+        'LT' => 'HH:mm',
22
+        'LTS' => 'HH:mm:ss',
23
+        'L' => 'YYYY-MM-DD',
24
+        'LL' => 'DD MMM YYYY',
25
+        'LLL' => 'DD MMMM YYYY HH:mm',
26
+        'LLLL' => 'dddd, DD MMMM YYYY HH:mm',
27
+    ],
28
+]);

+ 12
- 0
vendor/nesbot/carbon/src/Carbon/Lang/af_ZA.php View File

@@ -0,0 +1,12 @@
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
+
12
+return require __DIR__.'/af.php';

+ 28
- 0
vendor/nesbot/carbon/src/Carbon/Lang/agq.php View File

@@ -0,0 +1,28 @@
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
+
12
+return array_replace_recursive(require __DIR__.'/en.php', [
13
+    'meridiem' => ['a.g', 'a.k'],
14
+    'weekdays' => ['tsuʔntsɨ', 'tsuʔukpà', 'tsuʔughɔe', 'tsuʔutɔ̀mlò', 'tsuʔumè', 'tsuʔughɨ̂m', 'tsuʔndzɨkɔʔɔ'],
15
+    'weekdays_short' => ['nts', 'kpa', 'ghɔ', 'tɔm', 'ume', 'ghɨ', 'dzk'],
16
+    'weekdays_min' => ['nts', 'kpa', 'ghɔ', 'tɔm', 'ume', 'ghɨ', 'dzk'],
17
+    'months' => ['ndzɔ̀ŋɔ̀nùm', 'ndzɔ̀ŋɔ̀kƗ̀zùʔ', 'ndzɔ̀ŋɔ̀tƗ̀dʉ̀ghà', 'ndzɔ̀ŋɔ̀tǎafʉ̄ghā', 'ndzɔ̀ŋèsèe', 'ndzɔ̀ŋɔ̀nzùghò', 'ndzɔ̀ŋɔ̀dùmlo', 'ndzɔ̀ŋɔ̀kwîfɔ̀e', 'ndzɔ̀ŋɔ̀tƗ̀fʉ̀ghàdzughù', 'ndzɔ̀ŋɔ̀ghǔuwelɔ̀m', 'ndzɔ̀ŋɔ̀chwaʔàkaa wo', 'ndzɔ̀ŋèfwòo'],
18
+    'months_short' => ['nùm', 'kɨz', 'tɨd', 'taa', 'see', 'nzu', 'dum', 'fɔe', 'dzu', 'lɔm', 'kaa', 'fwo'],
19
+    'first_day_of_week' => 1,
20
+    'formats' => [
21
+        'LT' => 'HH:mm',
22
+        'LTS' => 'HH:mm:ss',
23
+        'L' => 'D/M/YYYY',
24
+        'LL' => 'D MMM, YYYY',
25
+        'LLL' => 'D MMMM YYYY HH:mm',
26
+        'LLLL' => 'dddd D MMMM YYYY HH:mm',
27
+    ],
28
+]);

+ 15
- 0
vendor/nesbot/carbon/src/Carbon/Lang/agr.php View File

@@ -0,0 +1,15 @@
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
+
12
+/*
13
+ * Unknown default region, use the first alphabetically.
14
+ */
15
+return require __DIR__.'/agr_PE.php';

+ 44
- 0
vendor/nesbot/carbon/src/Carbon/Lang/agr_PE.php View File

@@ -0,0 +1,44 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - somosazucar.org    libc-alpha@sourceware.org
15
+ */
16
+return array_replace_recursive(require __DIR__.'/en.php', [
17
+    'formats' => [
18
+        'L' => 'DD/MM/YY',
19
+    ],
20
+    'months' => ['Petsatin', 'Kupitin', 'Uyaitin', 'Tayutin', 'Kegketin', 'Tegmatin', 'Kuntutin', 'Yagkujutin', 'Daiktatin', 'Ipamtatin', 'Shinutin', 'Sakamtin'],
21
+    'months_short' => ['Pet', 'Kup', 'Uya', 'Tay', 'Keg', 'Teg', 'Kun', 'Yag', 'Dait', 'Ipam', 'Shin', 'Sak'],
22
+    'weekdays' => ['Tuntuamtin', 'Achutin', 'Kugkuktin', 'Saketin', 'Shimpitin', 'Imaptin', 'Bataetin'],
23
+    'weekdays_short' => ['Tun', 'Ach', 'Kug', 'Sak', 'Shim', 'Im', 'Bat'],
24
+    'weekdays_min' => ['Tun', 'Ach', 'Kug', 'Sak', 'Shim', 'Im', 'Bat'],
25
+    'first_day_of_week' => 0,
26
+    'day_of_first_week_of_year' => 7,
27
+    'meridiem' => ['VM', 'NM'],
28
+
29
+    'year' => ':count yaya', // less reliable
30
+    'y' => ':count yaya', // less reliable
31
+    'a_year' => ':count yaya', // less reliable
32
+
33
+    'month' => ':count nantu', // less reliable
34
+    'm' => ':count nantu', // less reliable
35
+    'a_month' => ':count nantu', // less reliable
36
+
37
+    'day' => ':count nayaim', // less reliable
38
+    'd' => ':count nayaim', // less reliable
39
+    'a_day' => ':count nayaim', // less reliable
40
+
41
+    'hour' => ':count kuwiš', // less reliable
42
+    'h' => ':count kuwiš', // less reliable
43
+    'a_hour' => ':count kuwiš', // less reliable
44
+]);

+ 15
- 0
vendor/nesbot/carbon/src/Carbon/Lang/ak.php View File

@@ -0,0 +1,15 @@
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
+
12
+/*
13
+ * Unknown default region, use the first alphabetically.
14
+ */
15
+return require __DIR__.'/ak_GH.php';

+ 40
- 0
vendor/nesbot/carbon/src/Carbon/Lang/ak_GH.php View File

@@ -0,0 +1,40 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - Sugar Labs // OLPC sugarlabs.org libc-alpha@sourceware.org
15
+ */
16
+return array_replace_recursive(require __DIR__.'/en.php', [
17
+    'formats' => [
18
+        'L' => 'YYYY/MM/DD',
19
+    ],
20
+    'months' => ['Sanda-Ɔpɛpɔn', 'Kwakwar-Ɔgyefuo', 'Ebɔw-Ɔbenem', 'Ebɔbira-Oforisuo', 'Esusow Aketseaba-Kɔtɔnimba', 'Obirade-Ayɛwohomumu', 'Ayɛwoho-Kitawonsa', 'Difuu-Ɔsandaa', 'Fankwa-Ɛbɔ', 'Ɔbɛsɛ-Ahinime', 'Ɔberɛfɛw-Obubuo', 'Mumu-Ɔpɛnimba'],
21
+    'months_short' => ['S-Ɔ', 'K-Ɔ', 'E-Ɔ', 'E-O', 'E-K', 'O-A', 'A-K', 'D-Ɔ', 'F-Ɛ', 'Ɔ-A', 'Ɔ-O', 'M-Ɔ'],
22
+    'weekdays' => ['Kwesida', 'Dwowda', 'Benada', 'Wukuda', 'Yawda', 'Fida', 'Memeneda'],
23
+    'weekdays_short' => ['Kwe', 'Dwo', 'Ben', 'Wuk', 'Yaw', 'Fia', 'Mem'],
24
+    'weekdays_min' => ['Kwe', 'Dwo', 'Ben', 'Wuk', 'Yaw', 'Fia', 'Mem'],
25
+    'first_day_of_week' => 1,
26
+    'day_of_first_week_of_year' => 1,
27
+    'meridiem' => ['AN', 'EW'],
28
+
29
+    'year' => ':count afe',
30
+    'y' => ':count afe',
31
+    'a_year' => ':count afe',
32
+
33
+    'month' => ':count bosume',
34
+    'm' => ':count bosume',
35
+    'a_month' => ':count bosume',
36
+
37
+    'day' => ':count ɛda',
38
+    'd' => ':count ɛda',
39
+    'a_day' => ':count ɛda',
40
+]);

+ 15
- 0
vendor/nesbot/carbon/src/Carbon/Lang/am.php View File

@@ -0,0 +1,15 @@
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
+
12
+/*
13
+ * Unknown default region, use the first alphabetically.
14
+ */
15
+return require __DIR__.'/am_ET.php';

+ 58
- 0
vendor/nesbot/carbon/src/Carbon/Lang/am_ET.php View File

@@ -0,0 +1,58 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - Ge'ez Frontier Foundation    locales@geez.org
15
+ */
16
+return array_replace_recursive(require __DIR__.'/en.php', [
17
+    'formats' => [
18
+        'L' => 'DD/MM/YYYY',
19
+    ],
20
+    'months' => ['ጃንዩወሪ', 'ፌብሩወሪ', 'ማርች', 'ኤፕሪል', 'ሜይ', 'ጁን', 'ጁላይ', 'ኦገስት', 'ሴፕቴምበር', 'ኦክቶበር', 'ኖቬምበር', 'ዲሴምበር'],
21
+    'months_short' => ['ጃንዩ', 'ፌብሩ', 'ማርች', 'ኤፕረ', 'ሜይ ', 'ጁን ', 'ጁላይ', 'ኦገስ', 'ሴፕቴ', 'ኦክተ', 'ኖቬም', 'ዲሴም'],
22
+    'weekdays' => ['እሑድ', 'ሰኞ', 'ማክሰኞ', 'ረቡዕ', 'ሐሙስ', 'ዓርብ', 'ቅዳሜ'],
23
+    'weekdays_short' => ['እሑድ', 'ሰኞ ', 'ማክሰ', 'ረቡዕ', 'ሐሙስ', 'ዓርብ', 'ቅዳሜ'],
24
+    'weekdays_min' => ['እሑድ', 'ሰኞ ', 'ማክሰ', 'ረቡዕ', 'ሐሙስ', 'ዓርብ', 'ቅዳሜ'],
25
+    'day_of_first_week_of_year' => 1,
26
+    'meridiem' => ['ጡዋት', 'ከሰዓት'],
27
+
28
+    'year' => ':count አመት',
29
+    'y' => ':count አመት',
30
+    'a_year' => ':count አመት',
31
+
32
+    'month' => ':count ወር',
33
+    'm' => ':count ወር',
34
+    'a_month' => ':count ወር',
35
+
36
+    'week' => ':count ሳምንት',
37
+    'w' => ':count ሳምንት',
38
+    'a_week' => ':count ሳምንት',
39
+
40
+    'day' => ':count ቀን',
41
+    'd' => ':count ቀን',
42
+    'a_day' => ':count ቀን',
43
+
44
+    'hour' => ':count ሰዓት',
45
+    'h' => ':count ሰዓት',
46
+    'a_hour' => ':count ሰዓት',
47
+
48
+    'minute' => ':count ደቂቃ',
49
+    'min' => ':count ደቂቃ',
50
+    'a_minute' => ':count ደቂቃ',
51
+
52
+    'second' => ':count ሴኮንድ',
53
+    's' => ':count ሴኮንድ',
54
+    'a_second' => ':count ሴኮንድ',
55
+
56
+    'ago' => 'ከ:time በፊት',
57
+    'from_now' => 'በ:time ውስጥ',
58
+]);

+ 15
- 0
vendor/nesbot/carbon/src/Carbon/Lang/an.php View File

@@ -0,0 +1,15 @@
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
+
12
+/*
13
+ * Unknown default region, use the first alphabetically.
14
+ */
15
+return require __DIR__.'/an_ES.php';

+ 55
- 0
vendor/nesbot/carbon/src/Carbon/Lang/an_ES.php View File

@@ -0,0 +1,55 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - Softaragones Jordi Mallach Pérez, Juan Pablo Martínez bug-glibc-locales@gnu.org, softaragones@softaragones.org
15
+ */
16
+return array_replace_recursive(require __DIR__.'/en.php', [
17
+    'formats' => [
18
+        'L' => 'DD/MM/YYYY',
19
+    ],
20
+    'months' => ['chinero', 'febrero', 'marzo', 'abril', 'mayo', 'chunyo', 'chuliol', 'agosto', 'setiembre', 'octubre', 'noviembre', 'aviento'],
21
+    'months_short' => ['chi', 'feb', 'mar', 'abr', 'may', 'chn', 'chl', 'ago', 'set', 'oct', 'nov', 'avi'],
22
+    'weekdays' => ['domingo', 'luns', 'martes', 'mierques', 'chueves', 'viernes', 'sabado'],
23
+    'weekdays_short' => ['dom', 'lun', 'mar', 'mie', 'chu', 'vie', 'sab'],
24
+    'weekdays_min' => ['dom', 'lun', 'mar', 'mie', 'chu', 'vie', 'sab'],
25
+    'first_day_of_week' => 1,
26
+    'day_of_first_week_of_year' => 4,
27
+
28
+    'year' => ':count año',
29
+    'y' => ':count año',
30
+    'a_year' => ':count año',
31
+
32
+    'month' => ':count mes',
33
+    'm' => ':count mes',
34
+    'a_month' => ':count mes',
35
+
36
+    'week' => ':count semana',
37
+    'w' => ':count semana',
38
+    'a_week' => ':count semana',
39
+
40
+    'day' => ':count día',
41
+    'd' => ':count día',
42
+    'a_day' => ':count día',
43
+
44
+    'hour' => ':count reloch', // less reliable
45
+    'h' => ':count reloch', // less reliable
46
+    'a_hour' => ':count reloch', // less reliable
47
+
48
+    'minute' => ':count minuto',
49
+    'min' => ':count minuto',
50
+    'a_minute' => ':count minuto',
51
+
52
+    'second' => ':count segundo',
53
+    's' => ':count segundo',
54
+    'a_second' => ':count segundo',
55
+]);

+ 15
- 0
vendor/nesbot/carbon/src/Carbon/Lang/anp.php View File

@@ -0,0 +1,15 @@
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
+
12
+/*
13
+ * Unknown default region, use the first alphabetically.
14
+ */
15
+return require __DIR__.'/anp_IN.php';

+ 27
- 0
vendor/nesbot/carbon/src/Carbon/Lang/anp_IN.php View File

@@ -0,0 +1,27 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - bhashaghar@googlegroups.com
15
+ */
16
+return array_replace_recursive(require __DIR__.'/en.php', [
17
+    'formats' => [
18
+        'L' => 'D/M/YY',
19
+    ],
20
+    'months' => ['जनवरी', 'फरवरी', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितंबर', 'अक्टूबर', 'नवंबर', 'दिसंबर"'],
21
+    'months_short' => ['जनवरी', 'फरवरी', 'मार्च', 'अप्रैल', 'मई', 'जून', 'जुलाई', 'अगस्त', 'सितंबर', 'अक्टूबर', 'नवंबर', 'दिसंबर'],
22
+    'weekdays' => ['रविवार', 'सोमवार', 'मंगलवार', 'बुधवार', 'बृहस्पतिवार', 'शुक्रवार', 'शनिवार'],
23
+    'weekdays_short' => ['रवि', 'सोम', 'मंगल', 'बुध', 'बृहस्पति', 'शुक्र', 'शनि'],
24
+    'weekdays_min' => ['रवि', 'सोम', 'मंगल', 'बुध', 'बृहस्पति', 'शुक्र', 'शनि'],
25
+    'day_of_first_week_of_year' => 1,
26
+    'meridiem' => ['पूर्वाह्न', 'अपराह्न'],
27
+]);

+ 93
- 0
vendor/nesbot/carbon/src/Carbon/Lang/ar.php View File

@@ -0,0 +1,93 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - Atef Ben Ali (atefBB)
15
+ * - Ibrahim AshShohail
16
+ * - MLTDev
17
+ * - Mohamed Sabil (mohamedsabil83)
18
+ * - Yazan Alnugnugh (yazan-alnugnugh)
19
+ */
20
+$months = [
21
+    'يناير',
22
+    'فبراير',
23
+    'مارس',
24
+    'أبريل',
25
+    'مايو',
26
+    'يونيو',
27
+    'يوليو',
28
+    'أغسطس',
29
+    'سبتمبر',
30
+    'أكتوبر',
31
+    'نوفمبر',
32
+    'ديسمبر',
33
+];
34
+
35
+return [
36
+    'year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']),
37
+    'a_year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']),
38
+    'month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']),
39
+    'a_month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']),
40
+    'week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']),
41
+    'a_week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']),
42
+    'day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']),
43
+    'a_day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']),
44
+    'hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']),
45
+    'a_hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']),
46
+    'minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']),
47
+    'a_minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']),
48
+    'second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']),
49
+    'a_second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']),
50
+    'ago' => 'منذ :time',
51
+    'from_now' => ':time من الآن',
52
+    'after' => 'بعد :time',
53
+    'before' => 'قبل :time',
54
+    'diff_now' => 'الآن',
55
+    'diff_today' => 'اليوم',
56
+    'diff_today_regexp' => 'اليوم(?:\\s+عند)?(?:\\s+الساعة)?',
57
+    'diff_yesterday' => 'أمس',
58
+    'diff_yesterday_regexp' => 'أمس(?:\\s+عند)?(?:\\s+الساعة)?',
59
+    'diff_tomorrow' => 'غداً',
60
+    'diff_tomorrow_regexp' => 'غدًا(?:\\s+عند)?(?:\\s+الساعة)?',
61
+    'diff_before_yesterday' => 'قبل الأمس',
62
+    'diff_after_tomorrow' => 'بعد غد',
63
+    'period_recurrences' => implode('|', ['{0}مرة', '{1}مرة', '{2}:count مرتين', ']2,11[:count مرات', ']10,Inf[:count مرة']),
64
+    'period_interval' => 'كل :interval',
65
+    'period_start_date' => 'من :date',
66
+    'period_end_date' => 'إلى :date',
67
+    'months' => $months,
68
+    'months_short' => $months,
69
+    'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
70
+    'weekdays_short' => ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'],
71
+    'weekdays_min' => ['ح', 'اث', 'ثل', 'أر', 'خم', 'ج', 'س'],
72
+    'list' => ['، ', ' و '],
73
+    'first_day_of_week' => 6,
74
+    'day_of_first_week_of_year' => 1,
75
+    'formats' => [
76
+        'LT' => 'HH:mm',
77
+        'LTS' => 'HH:mm:ss',
78
+        'L' => 'D/M/YYYY',
79
+        'LL' => 'D MMMM YYYY',
80
+        'LLL' => 'D MMMM YYYY HH:mm',
81
+        'LLLL' => 'dddd D MMMM YYYY HH:mm',
82
+    ],
83
+    'calendar' => [
84
+        'sameDay' => '[اليوم عند الساعة] LT',
85
+        'nextDay' => '[غدًا عند الساعة] LT',
86
+        'nextWeek' => 'dddd [عند الساعة] LT',
87
+        'lastDay' => '[أمس عند الساعة] LT',
88
+        'lastWeek' => 'dddd [عند الساعة] LT',
89
+        'sameElse' => 'L',
90
+    ],
91
+    'meridiem' => ['ص', 'م'],
92
+    'weekend' => [5, 6],
93
+];

+ 29
- 0
vendor/nesbot/carbon/src/Carbon/Lang/ar_AE.php View File

@@ -0,0 +1,29 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - IBM Globalization Center of Competency, Yamato Software Laboratory    bug-glibc-locales@gnu.org
15
+ * - Abdullah-Alhariri
16
+ */
17
+return array_replace_recursive(require __DIR__.'/ar.php', [
18
+    'formats' => [
19
+        'L' => 'DD MMM, YYYY',
20
+    ],
21
+    'months' => ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'],
22
+    'months_short' => ['ينا', 'فبر', 'مار', 'أبر', 'ماي', 'يون', 'يول', 'أغس', 'سبت', 'أكت', 'نوف', 'ديس'],
23
+    'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت '],
24
+    'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
25
+    'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
26
+    'first_day_of_week' => 6,
27
+    'day_of_first_week_of_year' => 1,
28
+    'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'],
29
+]);

+ 29
- 0
vendor/nesbot/carbon/src/Carbon/Lang/ar_BH.php View File

@@ -0,0 +1,29 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - IBM Globalization Center of Competency, Yamato Software Laboratory    bug-glibc-locales@gnu.org
15
+ * - Abdullah-Alhariri
16
+ */
17
+return array_replace_recursive(require __DIR__.'/ar.php', [
18
+    'formats' => [
19
+        'L' => 'DD MMM, YYYY',
20
+    ],
21
+    'months' => ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'],
22
+    'months_short' => ['ينا', 'فبر', 'مار', 'أبر', 'ماي', 'يون', 'يول', 'أغس', 'سبت', 'أكت', 'نوف', 'ديس'],
23
+    'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
24
+    'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
25
+    'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
26
+    'first_day_of_week' => 6,
27
+    'day_of_first_week_of_year' => 1,
28
+    'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'],
29
+]);

+ 13
- 0
vendor/nesbot/carbon/src/Carbon/Lang/ar_DJ.php View File

@@ -0,0 +1,13 @@
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
+
12
+return array_replace_recursive(require __DIR__.'/ar.php', [
13
+]);

+ 92
- 0
vendor/nesbot/carbon/src/Carbon/Lang/ar_DZ.php View File

@@ -0,0 +1,92 @@
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
+
12
+/**
13
+ * Authors:
14
+ * - Josh Soref
15
+ * - Noureddine LOUAHEDJ
16
+ * - JD Isaacks
17
+ * - Atef Ben Ali (atefBB)
18
+ * - Mohamed Sabil (mohamedsabil83)
19
+ */
20
+$months = [
21
+    'جانفي',
22
+    'فيفري',
23
+    'مارس',
24
+    'أفريل',
25
+    'ماي',
26
+    'جوان',
27
+    'جويلية',
28
+    'أوت',
29
+    'سبتمبر',
30
+    'أكتوبر',
31
+    'نوفمبر',
32
+    'ديسمبر',
33
+];
34
+
35
+return [
36
+    'year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']),
37
+    'a_year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']),
38
+    'month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']),
39
+    'a_month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']),
40
+    'week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']),
41
+    'a_week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']),
42
+    'day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']),
43
+    'a_day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']),
44
+    'hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']),
45
+    'a_hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']),
46
+    'minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']),
47
+    'a_minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']),
48
+    'second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']),
49
+    'a_second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']),
50
+    'ago' => 'منذ :time',
51
+    'from_now' => 'في :time',
52
+    'after' => 'بعد :time',
53
+    'before' => 'قبل :time',
54
+    'diff_now' => 'الآن',
55
+    'diff_today' => 'اليوم',
56
+    'diff_today_regexp' => 'اليوم(?:\\s+على)?(?:\\s+الساعة)?',
57
+    'diff_yesterday' => 'أمس',
58
+    'diff_yesterday_regexp' => 'أمس(?:\\s+على)?(?:\\s+الساعة)?',
59
+    'diff_tomorrow' => 'غداً',
60
+    'diff_tomorrow_regexp' => 'غدا(?:\\s+على)?(?:\\s+الساعة)?',
61
+    'diff_before_yesterday' => 'قبل الأمس',
62
+    'diff_after_tomorrow' => 'بعد غد',
63
+    'period_recurrences' => implode('|', ['{0}مرة', '{1}مرة', '{2}:count مرتين', ']2,11[:count مرات', ']10,Inf[:count مرة']),
64
+    'period_interval' => 'كل :interval',
65
+    'period_start_date' => 'من :date',
66
+    'period_end_date' => 'إلى :date',
67
+    'months' => $months,
68
+    'months_short' => $months,
69
+    'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
70
+    'weekdays_short' => ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'],
71
+    'weekdays_min' => ['أح', 'إث', 'ثلا', 'أر', 'خم', 'جم', 'سب'],
72
+    'list' => ['، ', ' و '],
73
+    'first_day_of_week' => 0,
74
+    'day_of_first_week_of_year' => 4,
75
+    'formats' => [
76
+        'LT' => 'HH:mm',
77
+        'LTS' => 'HH:mm:ss',
78
+        'L' => 'DD/MM/YYYY',
79
+        'LL' => 'D MMMM YYYY',
80
+        'LLL' => 'D MMMM YYYY HH:mm',
81
+        'LLLL' => 'dddd D MMMM YYYY HH:mm',
82
+    ],
83
+    'calendar' => [
84
+        'sameDay' => '[اليوم على الساعة] LT',
85
+        'nextDay' => '[غدا على الساعة] LT',
86
+        'nextWeek' => 'dddd [على الساعة] LT',
87
+        'lastDay' => '[أمس على الساعة] LT',
88
+        'lastWeek' => 'dddd [على الساعة] LT',
89
+        'sameElse' => 'L',
90
+    ],
91
+    'meridiem' => ['ص', 'م'],
92
+];

+ 29
- 0
vendor/nesbot/carbon/src/Carbon/Lang/ar_EG.php View File

@@ -0,0 +1,29 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - IBM Globalization Center of Competency, Yamato Software Laboratory    bug-glibc-locales@gnu.org
15
+ * - Abdullah-Alhariri
16
+ */
17
+return array_replace_recursive(require __DIR__.'/ar.php', [
18
+    'formats' => [
19
+        'L' => 'DD MMM, YYYY',
20
+    ],
21
+    'months' => ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'],
22
+    'months_short' => ['ينا', 'فبر', 'مار', 'أبر', 'ماي', 'يون', 'يول', 'أغس', 'سبت', 'أكت', 'نوف', 'ديس'],
23
+    'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
24
+    'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
25
+    'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
26
+    'first_day_of_week' => 6,
27
+    'day_of_first_week_of_year' => 1,
28
+    'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰٤', '۰٥', '۰٦', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱٤', '۱٥', '۱٦', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲٤', '۲٥', '۲٦', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳٤', '۳٥', '۳٦', '۳۷', '۳۸', '۳۹', '٤۰', '٤۱', '٤۲', '٤۳', '٤٤', '٤٥', '٤٦', '٤۷', '٤۸', '٤۹', '٥۰', '٥۱', '٥۲', '٥۳', '٥٤', '٥٥', '٥٦', '٥۷', '٥۸', '٥۹', '٦۰', '٦۱', '٦۲', '٦۳', '٦٤', '٦٥', '٦٦', '٦۷', '٦۸', '٦۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷٤', '۷٥', '۷٦', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸٤', '۸٥', '۸٦', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹٤', '۹٥', '۹٦', '۹۷', '۹۸', '۹۹'],
29
+]);

+ 13
- 0
vendor/nesbot/carbon/src/Carbon/Lang/ar_EH.php View File

@@ -0,0 +1,13 @@
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
+
12
+return array_replace_recursive(require __DIR__.'/ar.php', [
13
+]);

+ 13
- 0
vendor/nesbot/carbon/src/Carbon/Lang/ar_ER.php View File

@@ -0,0 +1,13 @@
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
+
12
+return array_replace_recursive(require __DIR__.'/ar.php', [
13
+]);

+ 13
- 0
vendor/nesbot/carbon/src/Carbon/Lang/ar_IL.php View File

@@ -0,0 +1,13 @@
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
+
12
+return array_replace_recursive(require __DIR__.'/ar.php', [
13
+]);

+ 26
- 0
vendor/nesbot/carbon/src/Carbon/Lang/ar_IN.php View File

@@ -0,0 +1,26 @@
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
+
12
+/*
13
+ * Authors:
14
+ * - IBM Globalization Center of Competency, Yamato Software Laboratory    bug-glibc-locales@gnu.org
15
+ */
16
+return array_replace_recursive(require __DIR__.'/ar.php', [
17
+    'formats' => [
18
+        'L' => 'D/M/YY',
19
+    ],
20
+    'months' => ['يناير', 'فبراير', 'مارس', 'أبريل', 'مايو', 'يونيو', 'يوليو', 'أغسطس', 'سبتمبر', 'أكتوبر', 'نوفمبر', 'ديسمبر'],
21
+    'months_short' => ['ينا', 'فبر', 'مار', 'أبر', 'ماي', 'يون', 'يول', 'أغس', 'سبت', 'أكت', 'نوف', 'ديس'],
22
+    'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
23
+    'weekdays_short' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
24
+    'weekdays_min' => ['ح', 'ن', 'ث', 'ر', 'خ', 'ج', 'س'],
25
+    'day_of_first_week_of_year' => 1,
26
+]);

+ 0
- 0
vendor/nesbot/carbon/src/Carbon/Lang/ar_IQ.php View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save