| Current Path : /home/rtorresani/www/vendor/magento/framework/App/Scope/ |
| Current File : //home/rtorresani/www/vendor/magento/framework/App/Scope/ValidatorInterface.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\Framework\App\Scope;
use Magento\Framework\Exception\LocalizedException;
/**
* Interface Validator for validating scope and scope code
*
* @api
*/
interface ValidatorInterface
{
/**
* Validate if exists given scope and scope code
* otherwise, throws an exception with appropriate message.
*
* @param string $scope
* @param string $scopeCode
* @return boolean
* @throws LocalizedException
*/
public function isValid($scope, $scopeCode = null);
}