src/API.php
public function logout() {
        if ($this->isLoggedIn() === false) {
            throw new BadMethodCallException('Client is not logged-in.');
        }

        $this->request(
            'idoit.logout'
        );

        $this->session = null;

        return $this;
    }
public function logout() {
        if ($this->isLoggedIn() === false) {
            throw new BadMethodCallException('Client is not logged-in.');
        }

        $this->request(
            'idoit.logout'
        );

        $this->session = null;

        return $this;
    }
public function logout ( ) { if ( $ this -> isLoggedIn ( ) === false ) { throw new BadMethodCallException ( 'Client is not logged-in.' ) ; } $ this -> request ( 'idoit.logout' ) ; $ this -> session = null ; return $ this ; }
Logouts from API

@return self Returns itself

@throws Exception on error
Logouts from API