Beispiel #1
0
 /**
  * @param AdapterInterface   $adapter
  * @param MessageInterface[] $messages
  * @param array              $debug
  * @param Exception          $previous
  */
 public function __construct(AdapterInterface $adapter, array $messages, array $debug = [], Exception $previous = null)
 {
     parent::__construct('Failed to enqueue messages', $adapter, $messages, $debug, $previous);
 }
 /**
  * @param string             $method
  * @param AdapterInterface   $adapter
  * @param MessageInterface[] $messages
  * @param array              $debug
  * @param Exception          $previous
  */
 public function __construct($method, AdapterInterface $adapter, array $messages, array $debug = [], Exception $previous = null)
 {
     $this->method = $method;
     parent::__construct(sprintf('Method `%s` is not supported by this adapter', $method), $adapter, $messages, $debug, $previous);
 }