for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Bankiru\Seo\Resolver;
use Bankiru\Seo\Entity\LinkInterface;
use Bankiru\Seo\Exception\LinkResolutionException;
final class StaticLinkResolver implements LinkResolver
{
/** {@inheritdoc} */
public function resolve($link)
if (!$this->supports($link)) {
throw new LinkResolutionException('Unsupported link type to resolve');
}
return [$link];
public function supports($link)
return $link instanceof LinkInterface;