| 1 | <?php |
||
| 10 | class BadMethodCallException extends BaseException implements ExceptionInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @param string $methodThatShouldBeCalled |
||
| 14 | * @param string $methodCalled |
||
| 15 | * |
||
| 16 | * @return BadMethodCallException |
||
| 17 | */ |
||
| 18 | public static function createMissingCall($methodThatShouldBeCalled, $methodCalled) |
||
| 19 | { |
||
| 20 | return new self( |
||
| 21 | sprintf( |
||
| 22 | 'The "%s" method must be called before calling "%s".', |
||
| 23 | $methodThatShouldBeCalled, |
||
| 24 | $methodCalled |
||
| 25 | ) |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $channel |
||
| 31 | * |
||
| 32 | * @return BadMethodCallException |
||
| 33 | */ |
||
| 34 | 1 | public static function createMissingChannel($channel) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @param string $message |
||
| 46 | * |
||
| 47 | * @return BadMethodCallException |
||
| 48 | */ |
||
| 49 | 1 | public static function createMissingMessage($message) |
|
| 58 | } |
||
| 59 |