connection = $connection; } /** * Generates the next IMAP tag to prepend to client commands. * * The structure of the IMAP tag is Axxxx, where * - A is a letter (uppercase for conformity) * - x is a digit from 0 to 9 * example of generated tag: T5439 * It uses the class variable {@link $this->currentTag}. * Everytime it is called, the tag increases by 1. * If it reaches the last tag, it wraps around to the first tag. * By default, the first generated tag is A0001. * * @return string */ public function getNextTag() { return parent::getNextTag(); } /** * Sets the current IMAP tag to the specified tag. * * @param string $tag */ public function setCurrentTag( $tag ) { $this->currentTag = $tag; } /** * Returns the current state of the IMAP transport. * * @return int */ public function getStatus() { return $this->state; } /** * Sets the current state of the IMAP transport to the specified state. * * @param int $status */ public function setStatus( $status ) { $this->state = $status; } } ?>