Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
402 lars 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
     * Date class of iteration items.
18
     *
19
     * @var string
20
     */
21
    protected $dateClass = CarbonImmutable::class;
22
 
23
    /**
24
     * Prepare the instance to be set (self if mutable to be mutated,
25
     * copy if immutable to generate a new instance).
26
     *
27
     * @return static
28
     */
29
    protected function copyIfImmutable()
30
    {
31
        return $this->constructed ? clone $this : $this;
32
    }
33
}