src/Api/User.php
public function block() : void
    {
        if ($this->onlineIdParameter() === 'me') return;

        $this->post(sprintf(self::USERS_ENDPOINT . 'blockList/%s', $this->client->onlineId(), $this->onlineId()), null);
    }
public function block() : void
    {
        if ($this->onlineIdParameter() === 'me') return;

        $this->post(sprintf(self::USERS_ENDPOINT . 'blockList/%s', $this->client->onlineId(), $this->onlineId()), null);
    }
public function block ( ) : void { if ( $ this -> onlineIdParameter ( ) === 'me' ) return ; $ this -> post ( sprintf ( self :: USERS_ENDPOINT . 'blockList/%s' , $ this -> client -> onlineId ( ) , $ this -> onlineId ( ) ) , null ) ; }
Block the User.

@return void
Block the User .