Skip to content

Commit c0c6825

Browse files
committed
add getters/setters for expires_at (#22833)
1 parent b17c54d commit c0c6825

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

app/code/Magento/User/Api/Data/UserInterface.php

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,19 @@ public function getInterfaceLocale();
162162
* @return $this
163163
*/
164164
public function setInterfaceLocale($interfaceLocale);
165+
166+
/**
167+
* Get user expiration date.
168+
*
169+
* @return string
170+
*/
171+
public function getExpiresAt();
172+
173+
/**
174+
* Set user expiration date.
175+
*
176+
* @param string $expiresAt
177+
* @return $this
178+
*/
179+
public function setExpiresAt($expiresAt);
165180
}

app/code/Magento/User/Model/User.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -917,6 +917,22 @@ public function setInterfaceLocale($interfaceLocale)
917917
return $this->setData('interface_locale', $interfaceLocale);
918918
}
919919

920+
/**
921+
* @inheritDoc
922+
*/
923+
public function getExpiresAt()
924+
{
925+
return $this->_getData('expires_at');
926+
}
927+
928+
/**
929+
* @inheritDoc
930+
*/
931+
public function setExpiresAt($expiresAt)
932+
{
933+
return $this->setData('expires_at', $expiresAt);
934+
}
935+
920936
/**
921937
* Security check for admin user
922938
*

0 commit comments

Comments
 (0)