src/Contracts/ResourceQuery.php
<?php
namespace Dogpile\Contracts;
use Dogpile\Collections\ResourceCollection;
interface ResourceQuery
{
/**
* Returns the type of Resource Objects
*
* @return string
*/
public function resourceType(): string;
/**
* Queries the resource based on the ids provided
*
* Must return an array of objects implementing the ResourceObject interface
*
* @param array $ids
* @return array
* @throws NotFoundException
*/
public function findHavingIds(array $ids): ResourceCollection;
}