Call to a member function getContent() on int