MModStartinit
1e1f174c创建于 2022年5月28日历史提交
<?php

namespace Illuminate\Bus;

use RuntimeException;
use ReflectionParameter;

class MarshalException extends RuntimeException
{
    /**
     * Throw a new exception.
     *
     * @param  string  $command
     * @param  \ReflectionParameter  $parameter
     * @return void
     *
     * @throws static
     */
    public static function whileMapping($command, ReflectionParameter $parameter)
    {
        throw new static("Unable to map parameter [{$parameter->name}] to command [{$command}]");
    }
}