for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace ClickHouseDB\Exception;
use LogicException;
class QueryException extends LogicException implements ClickHouseException
{
protected $requestDetails = [];
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
$a = "a"; $ab = "ab"; $abc = "abc";
will produce issues in the first and second line, while this second example
will produce no issues.
protected $responseDetails = [];
public static function cannotInsertEmptyValues() : self
return new self('Inserting empty values array is not supported in ClickHouse');
}
public static function noResponse() : self
return new self('No response returned');
public function setRequestDetails(array $requestDetails)
$this->requestDetails = $requestDetails;
public function getRequestDetails(): array
return $this->requestDetails;
public function setResponseDetails(array $responseDetails)
$this->responseDetails = $responseDetails;
public function getResponseDetails(): array
return $this->responseDetails;