GB_Error::add_data
Add data for error code.
The error code can only contain one error data.
Signature
public function add_data(mixed
$data,
[string
$code = ''] )
Parameters
$data
— mixed
Error data.$code
— string
Error code.
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
211 | 12 | error | Method name "GB_Error::add_data" is not in camel caps format |
213 | 9 | error | Inline control structures are not allowed |