for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Swis\JsonApi\Client;
use Swis\JsonApi\Client\Concerns\HasLinks;
use Swis\JsonApi\Client\Concerns\HasMeta;
class Error
{
use HasLinks;
use HasMeta;
/**
* @var string|null
*/
protected $id;
protected $status;
protected $code;
protected $title;
protected $detail;
* @var \Swis\JsonApi\Client\ErrorSource|null
protected $source;
public function __construct(
?string $id = null,
?Links $links = null,
?string $status = null,
?string $code = null,
?string $title = null,
?string $detail = null,
?ErrorSource $source = null,
?Meta $meta = null,
) {
$this->id = $id;
$this->links = $links;
$this->status = $status;
$this->code = $code;
$this->title = $title;
$this->detail = $detail;
$this->source = $source;
$this->meta = $meta;
}
* @return string|null
public function getId()
return $this->id;
public function getStatus()
return $this->status;
public function getCode()
return $this->code;
public function getTitle()
return $this->title;
public function getDetail()
return $this->detail;
* @return \Swis\JsonApi\Client\ErrorSource|null
public function getSource()
return $this->source;