_getExtensionAttributes(); } /** * Set extension attributes * * @param \Magento\Framework\GraphQl\Query\Resolver\ContextExtensionInterface $extensionAttributes * @return ContextInterface */ public function setExtensionAttributes( \Magento\Framework\GraphQl\Query\Resolver\ContextExtensionInterface $extensionAttributes ) : ContextInterface { return $this->_setExtensionAttributes($extensionAttributes); } /** * Get user id * * @return int */ public function getUserId() : int { return (int) $this->getData(self::USER_ID); } /** * Set user id * * @param int $userId * @return ContextInterface */ public function setUserId(int $userId) : ContextInterface { return $this->setData(self::USER_ID, $userId); } /** * Get user type * * @return int */ public function getUserType() : int { return (int) $this->getData(self::USER_TYPE_ID); } /** * Set user type * * @param int $typeId * @return ContextInterface */ public function setUserType(int $typeId) : ContextInterface { return $this->setData(self::USER_TYPE_ID, $typeId); } /** * @inheritDoc */ public function _resetState(): void { $this->_data = []; } }