<?php

namespace App\JsonApi;

class Error
{

    /**
     * @var string
     */

    public $code;

    /**
     * @var  string
     */
    public $data;

    /**
     * @var string 
     */
    public $message;

    /**
     * Error constructor.
     * @param string $code
     * @param string $message
     * @param string $data
     */
    public function __construct($code, $message, $data) {
        $this->code = $code;
        $this->message = $message;
        $this->data = $data;
    }


}