for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Softonic\GraphQL\DataObjects\Query;
use Softonic\GraphQL\DataObjects\AbstractCollection;
class Collection extends AbstractCollection implements QueryObject
{
public function jsonSerialize(): array
if (!$this->hasChildren()) {
return [];
}
$items = [];
foreach ($this->arguments as $item) {
$items[] = $item->jsonSerialize();
return $items;
protected function buildFilteredCollection($items)
return new Collection($items);
protected function buildSubCollection(array $items, string $key)