Пример #1
0
 /**
  * @param array $values
  *
  * @return void
  */
 public function fromArray(array $values)
 {
     parent::fromArray($values);
     foreach ($this->values[ResponseInterface::INFO_MESSAGES] as $key => $message) {
         $this->values[ResponseInterface::INFO_MESSAGES][$key] = new Message($message);
     }
     foreach ($this->values[ResponseInterface::ERROR_MESSAGES] as $key => $message) {
         $this->values[ResponseInterface::ERROR_MESSAGES][$key] = new Message($message);
     }
     foreach ($this->values[ResponseInterface::SUCCESS_MESSAGES] as $key => $message) {
         $this->values[ResponseInterface::SUCCESS_MESSAGES][$key] = new Message($message);
     }
 }
Пример #2
0
 /**
  * @param array|null $values
  */
 public function __construct(array $values = null)
 {
     parent::__construct($values);
 }