public function setNumber($num)
    {
        $num = (int) $num;
        if ($num <= 0) {
            throw new \InvalidArgumentException(sprintf(
                    'Invalid Number "%s" - Polygon Coordinates Number Must Be '
                    . 'Greater Than Zero'
                    , $num
            ));
        }
        $count = count($this->getCoordinates());
        if ($num > $count) {
            throw new \OutOfBoundsException(sprintf(
                    'Given Coodrinates Number "%s" Is Greater Than The Actual '
                    . 'Coordinates Array Size "%s"'
                    , $num, $count
            ));
        }
        $this->count = $num;

        return $this;
    }
public function setNumber($num)
    {
        $num = (int) $num;
        if ($num <= 0) {
            throw new \InvalidArgumentException(sprintf(
                    'Invalid Number "%s" - Polygon Coordinates Number Must Be '
                    . 'Greater Than Zero'
                    , $num
            ));
        }
        $count = count($this->getCoordinates());
        if ($num > $count) {
            throw new \OutOfBoundsException(sprintf(
                    'Given Coodrinates Number "%s" Is Greater Than The Actual '
                    . 'Coordinates Array Size "%s"'
                    , $num, $count
            ));
        }
        $this->count = $num;

        return $this;
    }
public function setNumber ( $ num ) { $ num = ( int ) $ num ; if ( $ num <= 0 ) { throw new \ InvalidArgumentException ( sprintf ( 'Invalid Number "%s" - Polygon Coordinates Number Must Be ' . 'Greater Than Zero' , $ num ) ) ; } $ count = count ( $ this -> getCoordinates ( ) ) ; if ( $ num > $ count ) { throw new \ OutOfBoundsException ( sprintf ( 'Given Coodrinates Number "%s" Is Greater Than The Actual ' . 'Coordinates Array Size "%s"' , $ num , $ count ) ) ; } $ this -> count = $ num ; return $ this ; }
Set Polygon coordinates number

@param integer $num the number of coordinates which will be drawn

@return \Jaguar\Drawable\Polygon

@throws \InvalidArgumentException
@throws \OutOfBoundsException
Set Polygon coordinates number