/home/techb158/ileadtechnology.com/SSM/vendor/nesbot/carbon/src/Carbon/Traits
NameSizeModeActions
Boundaries.php114700644editdlrm
Cast.php8540644editdlrm
Comparison.php310540644editdlrm
Converter.php154450644editdlrm
Creator.php281970644editdlrm
Date.php1599560644editdlrm
Difference.php501630644editdlrm
Localization.php252330644editdlrm
Macro.php34700644editdlrm
Mixin.php44050644editdlrm
Modifiers.php134080644editdlrm
Mutability.php13320644editdlrm
ObjectInitialisation.php4280644editdlrm
Options.php124460644editdlrm
Rounding.php71160644editdlrm
Serialization.php44970644editdlrm
Test.php42940644editdlrm
Timestamp.php32580644editdlrm
Units.php106020644editdlrm
Week.php73090644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/nesbot/carbon/src/Carbon/Traits/Mutability.php (1332B)
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Carbon\Traits; use Carbon\Carbon; use Carbon\CarbonImmutable; /** * Trait Mutability. * * Utils to know if the current object is mutable or immutable and convert it. */ trait Mutability { use Cast; /** * Returns true if the current class/instance is mutable. * * @return bool */ public static function isMutable() { return false; } /** * Returns true if the current class/instance is immutable. * * @return bool */ public static function isImmutable() { return !static::isMutable(); } /** * Return a mutable copy of the instance. * * @return Carbon */ public function toMutable() { /** @var Carbon $date */ $date = $this->cast(Carbon::class); return $date; } /** * Return a immutable copy of the instance. * * @return CarbonImmutable */ public function toImmutable() { /** @var CarbonImmutable $date */ $date = $this->cast(CarbonImmutable::class); return $date; } }