💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# Class **Phalcon\Validation\Message**[](# "永久链接至标题") *implements*[*Phalcon\Validation\MessageInterface*](#) Encapsulates validation info generated in the validation process ### Methods[](# "永久链接至标题") public **__construct** (*string* $message, [*string* $field], [*string* $type]) Phalcon\Validation\Message constructor public **setType** (*unknown* $type) Sets message type public **getType** () Returns message type public **setMessage** (*unknown* $message) Sets verbose message public **getMessage** () Returns verbose message public **setField** (*unknown* $field) Sets field name related to message public *string***getField** () Returns field name related to message public **__toString** () Magic __toString method returns verbose message public static **__set_state** (*unknown* $message) Magic __set_state helps to recover messsages from serialization | - [索引](# "总目录") - [下一页](# "Class Phalcon\Validation\Message\Group") | - [上一页](# "Class Phalcon\Validation\Exception") | - [API Indice](#) »