Neomerx\JsonApi\Document\Error::__construct PHP Метод

__construct() публичный Метод

public __construct ( integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $status = null, integer | string | null $code = null, string | null $title = null, string | null $detail = null, array $source = null, mixed | null $meta = null )
$idx integer | string | null
$aboutLink Neomerx\JsonApi\Contracts\Document\LinkInterface
$status integer | string | null
$code integer | string | null
$title string | null
$detail string | null
$source array
$meta mixed | null
    public function __construct($idx = null, LinkInterface $aboutLink = null, $status = null, $code = null, $title = null, $detail = null, array $source = null, $meta = null)
    {
        $this->checkIdx($idx);
        $this->checkCode($code);
        $this->checkTitle($title);
        $this->checkStatus($status);
        $this->checkDetail($detail);
        $this->idx = $idx;
        $this->links = $aboutLink === null ? null : [DocumentInterface::KEYWORD_ERRORS_ABOUT => $aboutLink];
        $this->status = $status !== null ? (string) $status : null;
        $this->code = $code !== null ? (string) $code : null;
        $this->title = $title;
        $this->source = $source;
        $this->detail = $detail;
        $this->meta = $meta;
    }