<?php
namespace EmbedProvidersOEmbed;
use EmbedAdaptersAdapter;
use EmbedHttpUrl;
/**
* Interface for all oembed endPoint.
*/
interface EndPointInterface
{
/**
* Check the response and create new instance.
*
* @param Adapter $adapter
*
* @return EndPointInterface|null
*/
public static function create(Adapter $adapter);
/**
* Returns the oembed endPoint.
*
* @return Url|null
*/
public function getEndPoint();
}