Neomerx\JsonApi\Exceptions\ErrorCollection::addDataIdError PHP Method

addDataIdError() public method

public addDataIdError ( string $title, string | null $detail = null, integer | string | null $status = null, integer | string | null $idx = null, Neomerx\JsonApi\Contracts\Document\LinkInterface $aboutLink = null, integer | string | null $code = null, mixed | null $meta = null )
$title string
$detail string | null
$status integer | string | null
$idx integer | string | null
$aboutLink Neomerx\JsonApi\Contracts\Document\LinkInterface
$code integer | string | null
$meta mixed | null
    public function addDataIdError($title, $detail = null, $status = null, $idx = null, LinkInterface $aboutLink = null, $code = null, $meta = null)
    {
        $pointer = $this->getPathToId();
        return $this->addResourceError($title, $pointer, $detail, $status, $idx, $aboutLink, $code, $meta);
    }