File Manager Lite
Dir:
/home/codewavebd/public_html/vendor/nesbot/carbon/src/Carbon/Traits
Upload
[..]
Boundaries.php (12.15 KB)
Edit
Rename
Del
Cast.php (1.16 KB)
Edit
Rename
Del
Converter.php (14.12 KB)
Edit
Rename
Del
Creator.php (31.13 KB)
Edit
Rename
Del
Date.php (350.15 KB)
Edit
Rename
Del
IntervalStep.php (2.86 KB)
Edit
Rename
Del
Macro.php (2.71 KB)
Edit
Rename
Del
MagicParameter.php (747 B)
Edit
Rename
Del
Mixin.php (7.28 KB)
Edit
Rename
Del
ObjectInitialisation.php (448 B)
Edit
Rename
Del
Rounding.php (6.93 KB)
Edit
Rename
Del
Test.php (6.28 KB)
Edit
Rename
Del
Units.php (19.07 KB)
Edit
Rename
Del
Edit: MagicParameter.php
<?php declare(strict_types=1); /** * This file is part of the Carbon package. * * (c) Brian Nesbitt <brian@nesbot.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Carbon\Traits; /** * Trait MagicParameter. * * Allows to retrieve parameter in magic calls by index or name. */ trait MagicParameter { private function getMagicParameter(array $parameters, int $index, string $key, $default) { if (\array_key_exists($index, $parameters)) { return $parameters[$index]; } if (\array_key_exists($key, $parameters)) { return $parameters[$key]; } return $default; } }
Simpan