`$user` should be probably instance of `UserInterface`.