| 1 | <?php  | 
            ||
| 10 | class SimpleErrorMessage implements \JsonSerializable  | 
            ||
| 11 | { | 
            ||
| 12 | /** @var string */  | 
            ||
| 13 | private $message = "";  | 
            ||
| 14 | /** @return string */  | 
            ||
| 15 |     public function getMessage() { return $this->message; } | 
            ||
| 16 | /** @param string $message */  | 
            ||
| 17 |     public function setMessage($message) { $this->message = $message; } | 
            ||
| 18 | |||
| 19 | /**  | 
            ||
| 20 | * FieldError constructor.  | 
            ||
| 21 | * @Important  | 
            ||
| 22 | * @param string $message  | 
            ||
| 23 | */  | 
            ||
| 24 | public function __construct($message = '')  | 
            ||
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * @return string  | 
            ||
| 31 | */  | 
            ||
| 32 | function jsonSerialize()  | 
            ||
| 36 | }  | 
            ||
| 37 | 
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.