for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Yokai\MessengerBundle\Exception;
use BadMethodCallException as BaseException;
/**
* @author Yann Eugoné <[email protected]>
*/
class BadMethodCallException extends BaseException implements ExceptionInterface
{
* @param string $methodThatShouldBeCalled
* @param string $methodCalled
*
* @return BadMethodCallException
public static function createMissingCall($methodThatShouldBeCalled, $methodCalled)
return new self(
sprintf(
'The "%s" method must be called before calling "%s".',
$methodThatShouldBeCalled,
$methodCalled
)
);
}
* @param string $channel
public static function createMissingChannel($channel)
'The "%s" channel was never registered.',
$channel
* @param string $message
public static function createMissingMessage($message)
$message