public function getPassword(UserEntity $user) { if ($user->getAuthentification() == UserModel::AUTHENTIFICATION_BY_PASSWORD) { $password = new PasswordEntity($user); return $password->getPassword(); } return false; }