Repository/ContentfulAssetRepositoryInterface.php
<?php
namespace Dothiv\Bundle\ContentfulBundle\Repository;
use Doctrine\Common\Collections\ArrayCollection;
use Dothiv\Bundle\ContentfulBundle\Item\ContentfulAsset;
use PhpOption\Option;
interface ContentfulAssetRepositoryInterface
{
/**
* @param string $spaceId
* @param string $id
*
* @return Option
*/
function findNewestById($spaceId, $id);
/**
* @param ContentfulAsset $asset
*
* @return void
*/
function persist(ContentfulAsset $asset);
/**
* @param string $spaceId
*
* @return ContentfulAsset[]|ArrayCollection
*/
function findAllBySpaceId($spaceId);
/**
* @return ContentfulAsset[]|ArrayCollection
*/
function findAll();
}