Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ValidationResults.php
Go to the documentation of this file.
1 <?php
9 
15 {
19  public function isValid()
20  {
21  return $this->_get(self::VALID);
22  }
23 
27  public function getMessages()
28  {
29  return $this->_get(self::MESSAGES);
30  }
31 
38  public function setIsValid($isValid)
39  {
40  return $this->setData(self::VALID, $isValid);
41  }
42 
49  public function setMessages(array $messages)
50  {
51  return $this->setData(self::MESSAGES, $messages);
52  }
53 }