Class Phalcon\Validation\Message
implements Phalcon\Validation\MessageInterface
Encapsulates validation info generated in the validation process
Methods
public __construct (unknown $message, [unknown $field], [unknown $type])
Phalcon\Validation\Message constructor
public Phalcon\Validation\Message setType (unknown $type)
Sets message type
public string getType ()
Returns message type
public Phalcon\Validation\Message setMessage (unknown $message)
Sets verbose message
public string getMessage ()
Returns verbose message
public Phalcon\Validation\Message setField (unknown $field)
Sets field name related to message
public string getField ()
Returns field name related to message
public string __toString ()
Magic __toString method returns verbose message
public static Phalcon\Validation\Message __set_state (unknown $message)
Magic __set_state helps to recover messsages from serialization