private function checkMessageId($id)
    {
        if(!is_int($id)){
            throw new ImapClientException('$id must be an integer!');
        };
        if($id <= 0){
            throw new ImapClientException('$id must be greater then 0!');
        };
        if($id > $this->countMessages()){
            throw new ImapClientException('$id does not exist');
        }
    }
private function checkMessageId($id)
    {
        if(!is_int($id)){
            throw new ImapClientException('$id must be an integer!');
        };
        if($id <= 0){
            throw new ImapClientException('$id must be greater then 0!');
        };
        if($id > $this->countMessages()){
            throw new ImapClientException('$id does not exist');
        }
    }
private function checkMessageId ( $ id ) { if ( ! is_int ( $ id ) ) { throw new ImapClientException ( '$id must be an integer!' ) ; } ; if ( $ id <= 0 ) { throw new ImapClientException ( '$id must be greater then 0!' ) ; } ; if ( $ id > $ this -> countMessages ( ) ) { throw new ImapClientException ( '$id does not exist' ) ; } }
Check message id

@param integer $id
@return void
@throws ImapClientException
Check message id