PokemonTCG/pokemon-tcg-sdk-php

View on GitHub
src/Resources/Interfaces/QueriableResourceInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Pokemon\Resources\Interfaces;

use Pokemon\Models\Model;

/**
 * Interface QueriableResourceInterface
 *
 * @package Pokemon\Resources\Interfaces
 */
interface QueriableResourceInterface extends ResourceInterface
{

    /**
     * @param array $query
     *
     * @return QueriableResourceInterface
     */
    public function where(array $query);

    /**
     * @param string $identifier
     *
     * @return Model|null
     */
    public function find($identifier);

}