Documentation

Interface Phalcon\Validation\MessageInterface

Source on GitHub

Phalcon\Validation\MessageInterface initializer

Methods

abstract public Phalcon\Validation\MessageInterface setType (string $type)

Sets message type

abstract public string getType ()

Returns message type

abstract public Phalcon\Validation\MessageInterface setCode (string $code)

Sets message code

abstract public string getCode ()

Returns message code

abstract public Phalcon\Validation\MessageInterface setMessage (string $message)

Sets verbose message

abstract public string getMessage ()

Returns verbose message

abstract public Phalcon\Validation\MessageInterface setField (string $field)

Sets field name related to message

abstract public string getField ()

Returns field name related to message

abstract public string __toString ()

Magic __toString method returns verbose message