public function changePassword(Password $password) { $this->password = $password->getPassword(); $this->salt = $password->getSalt(); }