* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Core\Domain\Feature\Query; use PrestaShop\PrestaShop\Core\Domain\Feature\Exception\InvalidFeatureValueIdException; use PrestaShop\PrestaShop\Core\Domain\Feature\ValueObject\FeatureValueId; /** * Retrieves feature value data for editing */ class GetFeatureValueForEditing { /** * @var FeatureValueId */ private $featureValueId; /** * @param int $featureValueId * * @throws InvalidFeatureValueIdException */ public function __construct(int $featureValueId) { $this->featureValueId = new FeatureValueId($featureValueId); } /** * @return FeatureValueId */ public function getFeatureValueId(): FeatureValueId { return $this->featureValueId; } }