|
@@ -74,6 +74,26 @@ class BaseUser extends AbstractedUser implements UserInterface
|
|
return $this->updatedAt;
|
|
return $this->updatedAt;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Returns the credentials expiration date
|
|
|
|
+ *
|
|
|
|
+ * @return \DateTime
|
|
|
|
+ */
|
|
|
|
+ public function getCredentialsExpireAt()
|
|
|
|
+ {
|
|
|
|
+ return $this->credentialsExpireAt;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Sets the credentials expiration date
|
|
|
|
+ *
|
|
|
|
+ * @param \DateTime|null $date
|
|
|
|
+ */
|
|
|
|
+ public function setCredentialsExpireAt(\DateTime $date = null)
|
|
|
|
+ {
|
|
|
|
+ $this->credentialsExpireAt = $date;
|
|
|
|
+ }
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* Hook on pre-persist operations
|
|
* Hook on pre-persist operations
|
|
*/
|
|
*/
|