public function setHashedPassword(string $password) { $this->password = password_hash($password, PASSWORD_BCRYPT, ['cost' => 12]); }