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\ClientError;
use Chubbyphp\ApiHttp\ApiProblem\AbstractApiProblem;
final class PaymentRequired extends AbstractApiProblem
{
/**
* @var string[]
*/
private $paymentTypes = [];
* @param string[] $paymentTypes
public function __construct(array $paymentTypes, string $detail = null, string $instance = null)
parent::__construct(
'https://tools.ietf.org/html/rfc2616#section-10.4.3',
402,
'Payment Required',
$detail,
$instance
);
$this->paymentTypes = $paymentTypes;
}
* @return string[]
public function getPaymentTypes(): array
return $this->paymentTypes;