* @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\Profile\Command; use PrestaShop\PrestaShop\Core\Domain\Profile\Exception\ProfileException; use PrestaShop\PrestaShop\Core\Domain\Profile\ValueObject\ProfileId; /** * Edits existing Profile */ class EditProfileCommand extends AbstractProfileCommand { /** * @var ProfileId */ private $profileId; /** * @param int $profileId * @param string[] $localizedNames * * @throws ProfileException */ public function __construct($profileId, array $localizedNames) { parent::__construct($localizedNames); $this->profileId = new ProfileId((int) $profileId); } /** * @return ProfileId */ public function getProfileId() { return $this->profileId; } }