Files
faveo/vendor/laravelcollective/bus/src/MarshalException.php
Manish Verma 76e85db070 update 1.0.8.0
Commits for version update
2016-10-17 12:02:27 +05:30

25 lines
525 B
PHP

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