src/PelDataWindow.php
public function setWindowSize($size)
    {
        if ($size < 0) {
            $size += $this->size;
        }
        if ($size < 0 || $size > $this->size) {
            throw new PelDataWindowWindowException(
                'Window [0, %d] ' . 'does not fit in window [0, %d]',
                $size,
                $this->size
            );
        }
        $this->size = $size;
    }
public function setWindowSize($size)
    {
        if ($size < 0) {
            $size += $this->size;
        }
        if ($size < 0 || $size > $this->size) {
            throw new PelDataWindowWindowException(
                'Window [0, %d] ' . 'does not fit in window [0, %d]',
                $size,
                $this->size
            );
        }
        $this->size = $size;
    }
public function setWindowSize ( $ size ) { if ( $ size < 0 ) { $ size += $ this -> size ; } if ( $ size < 0 || $ size > $ this -> size ) { throw new PelDataWindowWindowException ( 'Window [0, %d] ' . 'does not fit in window [0, %d]' , $ size , $ this -> size ) ; } $ this -> size = $ size ; }
Adjust the size of the window.
The size can only be made smaller.

@param integer $size
the desired size of the window. If the argument is
negative, the window will be shrunk by the argument.
Adjust the size of the window . The size can only be made smaller .