public function getStatus(int $flags = null): \stdClass
    {
        $return = \imap_status($this->resource->getStream(), $this->getFullEncodedName(), $flags ?? \SA_ALL);

        if (false === $return) {
            throw new ImapStatusException('imap_status failed');
        }

        return $return;
    }
public function getStatus(int $flags = null): \stdClass
    {
        $return = \imap_status($this->resource->getStream(), $this->getFullEncodedName(), $flags ?? \SA_ALL);

        if (false === $return) {
            throw new ImapStatusException('imap_status failed');
        }

        return $return;
    }
public function getStatus ( int $ flags = null ) : \ stdClass { $ return = \ imap_status ( $ this -> resource -> getStream ( ) , $ this -> getFullEncodedName ( ) , $ flags ?? \ SA_ALL ) ; if ( false === $ return ) { throw new ImapStatusException ( 'imap_status failed' ) ; } return $ return ; }
Get Mailbox status.

@param null|int $flags

@return \stdClass
Get Mailbox status .