Added a lastLoginAt field to the User entity

This commit is contained in:
Polonkai Gergely
2012-07-07 18:04:15 +02:00
parent 26527d8057
commit adba578db8
5 changed files with 66 additions and 3 deletions

View File

@@ -142,4 +142,4 @@ class Role implements RoleInterface
{
return $this->name;
}
}
}

View File

@@ -307,4 +307,31 @@ class User implements UserInterface, AdvancedUserInterface
{
return ($this->accepted_by !== null);
}
}
/**
* @var datetime $last_login_at
*/
private $last_login_at;
/**
* Set last_login_at
*
* @param datetime $lastLoginAt
* @return User
*/
public function setLastLoginAt($lastLoginAt)
{
$this->last_login_at = $lastLoginAt;
return $this;
}
/**
* Get last_login_at
*
* @return datetime
*/
public function getLastLoginAt()
{
return $this->last_login_at;
}
}