Skip to content

Commit

Permalink
add getters/setters for expires_at (#22833)
Browse files Browse the repository at this point in the history
  • Loading branch information
lfolco committed May 11, 2019
1 parent b17c54d commit c0c6825
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/code/Magento/User/Api/Data/UserInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,19 @@ public function getInterfaceLocale();
* @return $this
*/
public function setInterfaceLocale($interfaceLocale);

/**
* Get user expiration date.
*
* @return string
*/
public function getExpiresAt();

/**
* Set user expiration date.
*
* @param string $expiresAt
* @return $this
*/
public function setExpiresAt($expiresAt);
}
16 changes: 16 additions & 0 deletions app/code/Magento/User/Model/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,22 @@ public function setInterfaceLocale($interfaceLocale)
return $this->setData('interface_locale', $interfaceLocale);
}

/**
* @inheritDoc
*/
public function getExpiresAt()
{
return $this->_getData('expires_at');
}

/**
* @inheritDoc
*/
public function setExpiresAt($expiresAt)
{
return $this->setData('expires_at', $expiresAt);
}

/**
* Security check for admin user
*
Expand Down

0 comments on commit c0c6825

Please sign in to comment.