src/PTel.php
public function setWindowSize($height, $width) {
        if (!is_int($height) || !is_int($width)) {
            throw new TelnetException("Wrong windows height or width used. Should valid integer.");
        }

        if ($height < 1 || $width < 1 || $height === 255 || $width === 255) {
            throw new TelnetException("Window size can't be negative or 255");
        }

        $this->winsize_height = $height;
        $this->winsize_widht = $width;

        return $this;
    }
public function setWindowSize($height, $width) {
        if (!is_int($height) || !is_int($width)) {
            throw new TelnetException("Wrong windows height or width used. Should valid integer.");
        }

        if ($height < 1 || $width < 1 || $height === 255 || $width === 255) {
            throw new TelnetException("Window size can't be negative or 255");
        }

        $this->winsize_height = $height;
        $this->winsize_widht = $width;

        return $this;
    }
public function setWindowSize ( $ height , $ width ) { if ( ! is_int ( $ height ) || ! is_int ( $ width ) ) { throw new TelnetException ( "Wrong windows height or width used. Should valid integer." ) ; } if ( $ height < 1 || $ width < 1 || $ height === 255 || $ width === 255 ) { throw new TelnetException ( "Window size can't be negative or 255" ) ; } $ this -> winsize_height = $ height ; $ this -> winsize_widht = $ width ; return $ this ; }
Window size used while negotiating

@param int $height   Window height
@param int $width    Window width

@throws  TelnetException         On wrong parameter specified
@throws  SocketClientException   On socket communication error

@return $this    Instance of current class
Window size used while negotiating