public function setSize($size)
    {
        if ($size < -1) {
            throw new \InvalidArgumentException(sprintf('Unsupported column size %s, use positive value or -1 for auto resize', $size));
        }

        $this->size = $size;

        return $this;
    }
public function setSize($size)
    {
        if ($size < -1) {
            throw new \InvalidArgumentException(sprintf('Unsupported column size %s, use positive value or -1 for auto resize', $size));
        }

        $this->size = $size;

        return $this;
    }
public function setSize ( $ size ) { if ( $ size < - 1 ) { throw new \ InvalidArgumentException ( sprintf ( 'Unsupported column size %s, use positive value or -1 for auto resize' , $ size ) ) ; } $ this -> size = $ size ; return $ this ; }
Set column width.

@param int $size in pixels

@return \APY\DataGridBundle\Grid\Column\Column
Set column width .