* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Domain\Meta\Query; use PrestaShop\PrestaShop\Core\Domain\Meta\Exception\MetaException; use PrestaShop\PrestaShop\Core\Domain\Meta\ValueObject\MetaId; /** * Class GetMetaForEditing is responsible for providing required data for GetMetaForEditingHandler to return meta data. */ class GetMetaForEditing { /** * @var MetaId */ private $metaId; /** * GetMetaForEditing constructor. * * @param int $metaId * * @throws MetaException */ public function __construct($metaId) { $this->metaId = new MetaId($metaId); } /** * @return MetaId */ public function getMetaId() { return $this->metaId; } }