| 1 | <?php |
||
| 20 | class Error implements \JsonSerializable |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var string |
||
| 24 | */ |
||
| 25 | public $format; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var array |
||
| 29 | */ |
||
| 30 | public $args; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param string $format |
||
| 34 | * @param array $args |
||
| 35 | */ |
||
| 36 | public function __construct($format, array $args = []) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @inheritdoc |
||
| 44 | */ |
||
| 45 | public function __toString() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @inheritdoc |
||
| 52 | */ |
||
| 53 | function jsonSerialize() |
||
| 57 | } |
||
| 58 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.