for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Reviewsio\Endpoints;
trait HasGetQuery
{
protected array $query = [];
public function withQuery(array $query = []): static
$this->query = array_merge($this->query, $query);
return $this;
}
public function addParameterToQuery(string $parameter, mixed $value = null): static
$this->query[$parameter] = $value;
public function removeParameterFromQuery(string $parameter): static
if (isset($this->query[$parameter])) {
unset($this->query[$parameter]);
public function query(): array
return $this->query;