%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/SensitiveParameterArrayReducer.php

<?php

namespace Spatie\Backtrace\Arguments\Reducers;

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

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

        return new ReducedArgument(
            'SensitiveParameterValue('.get_debug_type($argument->getValue()).')',
            get_class($argument)
        );
    }
}

Zerion Mini Shell 1.0