for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php declare(strict_types=1);
namespace RicardoFiorani\Adapter\Vimeo\Factory;
use RicardoFiorani\Adapter\CallableServiceAdapterFactoryInterface;
use RicardoFiorani\Adapter\VideoAdapterInterface;
use RicardoFiorani\Adapter\Vimeo\VimeoServiceAdapter;
use RicardoFiorani\Renderer\EmbedRendererInterface;
class VimeoServiceAdapterFactory implements CallableServiceAdapterFactoryInterface
{
public function __invoke(string $url, string $pattern, EmbedRendererInterface $renderer): VideoAdapterInterface
$adapter = new VimeoServiceAdapter($url, $pattern, $renderer);
return $adapter;
}