* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShopBundle\Routing\Linter\Exception; /** * Thrown when naming convention is not followed */ class NamingConventionException extends LinterException { /** * @var string */ protected $expectedRouteName; public function __construct($message = '', $code = 0, \RuntimeException $previous = null, $expectedRouteName = null) { $this->expectedRouteName = $expectedRouteName; parent::__construct($message, $code, $previous); } /** * @return string */ public function getExpectedRouteName(): string { return $this->expectedRouteName; } }