for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Chubbyphp\ApiHttp\ApiProblem;
abstract class AbstractApiProblem implements ApiProblemInterface
{
/**
* @var string
*/
private $type;
* @var int
private $status;
private $title;
private $detail;
* @var string|null
private $instance;
* @param string $type
* @param int $status
* @param string $title
* @param string|null $detail
* @param string|null $instance
public function __construct(
string $type,
int $status,
string $title,
string $detail = null,
string $instance = null
) {
$this->type = $type;
$this->status = $status;
$this->title = $title;
$this->detail = $detail;
$this->instance = $instance;
}
* @return string
public function getType(): string
return $this->type;
* @return int
public function getStatus(): int
return $this->status;
public function getTitle(): string
return $this->title;
* @return string|null
public function getDetail()
return $this->detail;
public function getInstance()
return $this->instance;
* @return array
public function getHeaders(): array
return [];