for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Everlution\Navigation\Factory\Build;
/**
* Class UnsupportedItemClassException.
* @author Ivan Barlog <[email protected]>
*/
class UnsupportedItemClassException extends \InvalidArgumentException
{
public function __construct(string $class, array $supportedClasses)
parent::__construct(
sprintf(
"Cannot create object of type '%s'. Supported classes: %s.
Did you forget to specify supported classes within config() method?",
$class,
implode(', ', $supportedClasses)
)
);
}