public function __construct($limit, UserInterface $user) { parent::__construct('The resetting-email limit has been reached!', 1007); $this->limit = $limit; $this->user = $user; }
public function __construct(UserInterface $user) { parent::__construct(sprintf('The user "%s" has no token!', $user->getUsername()), 1006); $this->user = $user; }