public function setPolygon($field, array $lineRingsArray)
    {
        return $this->setGeometry(
            $field,
            new \GeoJson\Geometry\Polygon($lineRingsArray)
        );
    }
public function setPolygon($field, array $lineRingsArray)
    {
        return $this->setGeometry(
            $field,
            new \GeoJson\Geometry\Polygon($lineRingsArray)
        );
    }
public function setPolygon ( $ field , array $ lineRingsArray ) { return $ this -> setGeometry ( $ field , new \ GeoJson \ Geometry \ Polygon ( $ lineRingsArray ) ) ; }
Set polygon as array of line rings.

Line ring is closed line string (first and last point same).
Line string is array of points.

Requires MongoDB version 2.4 or above with 2dsparse index version 1
to use Point, LineString and Polygon.

@link http://docs.mongodb.org/manual/core/2dsphere/#polygon
@param string $field
@param array $lineRingsArray array of line rings
@return \Sokil\Mongo\Document
Set polygon as array of line rings .