public function rotate($degrees)
    {
        // Cast to the int, in case we got a numeric string
        $degrees = (int) $degrees;

        $this->image = imagerotate($this->image, $degrees, 0);
        $this->width = imagesx($this->image);
        $this->height = imagesy($this->image);

        return $this;
    }
public function rotate($degrees)
    {
        // Cast to the int, in case we got a numeric string
        $degrees = (int) $degrees;

        $this->image = imagerotate($this->image, $degrees, 0);
        $this->width = imagesx($this->image);
        $this->height = imagesy($this->image);

        return $this;
    }
public function rotate ( $ degrees ) { // Cast to the int, in case we got a numeric string $ degrees = ( int ) $ degrees ; $ this -> image = imagerotate ( $ this -> image , $ degrees , 0 ) ; $ this -> width = imagesx ( $ this -> image ) ; $ this -> height = imagesy ( $ this -> image ) ; return $ this ; }
Rotates the image

@param integer $degrees
@return \Krystal\Image\Processor\GD\ImageProcessor
Rotates the image