for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Everlution\NavigationBundle\Bridge\Url;
use Everlution\Navigation\Item\ItemInterface;
/**
* Class ItemIsNotSupportedException.
*
* @author Ivan Barlog <[email protected]>
*/
class ItemIsNotSupportedException extends \Exception
{
public function __construct(ItemInterface $item, string $supported)
$itemClass = get_class($item);
parent::__construct("Item '$itemClass' needs to implement '$supported' interface");
}