$messages
$messages : array<mixed,string>
Stored wperror
Main class of the MocaBonita Exception
setData(array|\Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\View\View $data) : \MocaBonita\tools\MbException
Set exception data
array|\Illuminate\Contracts\Support\Arrayable|\Illuminate\Contracts\View\View | $data |
setMessages( $messages) : \MocaBonita\tools\MbException
$messages |
__construct(string $msg, integer $code = 400, null|array|\MocaBonita\view\MbView|\Illuminate\Contracts\Support\Arrayable $dados = null, \WP_Error $messages = null)
PHP 5 allows developers to declare constructor methods for classes.
Classes which have a constructor method call this method on each newly-created object, so it is suitable for any initialization that the object may need before it is used.
Note: Parent constructors are not called implicitly if the child class defines a constructor. In order to run a parent constructor, a call to parent::__construct() within the child constructor is required.
string | $msg | |
integer | $code | |
null|array|\MocaBonita\view\MbView|\Illuminate\Contracts\Support\Arrayable | $dados | |
\WP_Error | $messages |