public function isUser(UserInterface $user = null) { return $user instanceof self && $user->id === $this->id; }