syntax error, unexpected ‘=>’ (T_DOUBLE_ARROW) [closed]

The => is the array assignment operator, and you haven’t told PHP this is an array. Try:

 public $is_success = true;
 public $messages = array(
        'success' => [],
        'error' => [],
        'admin_error' => [],
    );

References