A POO version for Imap in PHP