Exemple #1
0
 /**
  * @param array $messages
  * @param integer $severity
  */
 public function __construct(array $messages, $severity)
 {
     Assert::isInteger($severity);
     parent::__construct(Messages::LOG, null, [self::PARAM_LOG_MESSAGES => $messages, self::PARAM_LOG_SEVERITY => $severity]);
 }
 /** @covers Brickoo\Component\Messaging\GenericMessage::getResponseList */
 public function testGetResponse()
 {
     $message = new GenericMessage("test.message");
     $this->assertInstanceOf("\\Brickoo\\Component\\Common\\ArrayList", $message->getResponseList());
 }
 /** @param \Exception $exception */
 public function __construct(\Exception $exception)
 {
     parent::__construct(Messages::EXCEPTION, null, [self::PARAM_EXCEPTION => $exception]);
 }
Exemple #4
0
 /** @param string $errorMessage */
 public function __construct($errorMessage)
 {
     Assert::isString($errorMessage);
     parent::__construct(Messages::ERROR, null, [self::PARAM_ERROR_MESSAGE => $errorMessage]);
 }