public function notification(string $method, array $parameters)
    {
        if ($this->isSingleRequest) {
            $this->units = [];
        }

        $this->units[] = new Notification($method, $parameters);

        if ($this->isSingleRequest) {
            $this->execute(new InvokeSpec($this->units, true));
            return null;
        }

        return $this;
    }
public function notification(string $method, array $parameters)
    {
        if ($this->isSingleRequest) {
            $this->units = [];
        }

        $this->units[] = new Notification($method, $parameters);

        if ($this->isSingleRequest) {
            $this->execute(new InvokeSpec($this->units, true));
            return null;
        }

        return $this;
    }
public function notification ( string $ method , array $ parameters ) { if ( $ this -> isSingleRequest ) { $ this -> units = [ ] ; } $ this -> units [ ] = new Notification ( $ method , $ parameters ) ; if ( $ this -> isSingleRequest ) { $ this -> execute ( new InvokeSpec ( $ this -> units , true ) ) ; return null ; } return $ this ; }
Make notification request

@param string $method
@param array  $parameters

@return $this|null
Make notification request