<commit_before><?php

namespace Ivory\GoogleMapBundle\Model;

/**
 * Ground overlay which describes a google map ground overlay
 *
 * @see http://code.google.com/apis/maps/documentation/javascript/reference.html#GroundOverlay
 * @author GeLo <<EMAIL>>
 */
class GroundOverlay extends AbstractAsset
{
    /**
     * @var string Group Overlay image url
     */
    protected $url = null;

    /**
     * @var Ivory\GoogleMapBundle\Model\Bound Ground overlay bound
     */
    protected $bound = null;

    /**
     * @var array Ground overlay options
     * @see http://code.google.com/apis/maps/documentation/javascript/reference.html#GroundOverlayOptions
     */
    protected $options = array();

    /**
     * Create a ground overlay
     */
    public function __construct()
    {
        parent::__construct();
        
        $this->setPrefixJavascriptVariable('ground_overlay_');
        
        $this->bound = new Bound();
        $this->bound->setNorthEast(new Coordinate());
        $this->bound->setSouthWest(new Coordinate());
    }

    /**
     * Gets the ground overlay image url
     *
     * @return string
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * Sets the ground overlay image url
     *
     * @param string $url
     */
    public function setUrl($url)
    {
        $this->url = $url;
    }

    /**
     * Gets the ground overlay bound
     *
     * @return Ivory\GoogleMapBundle\Model\Bound
     */
    public function getBound()
    {
        return $this->bound;
    }

    /**
     * Sets the ground overlay bound
     *
     * @param Ivory\GoogleMapBundle\Model\Bound $bound
     */
    public function setBound(Bound $bound)
    {
        $this->bound = $bound;
    }

    /**
     * Gets the ground overlay options
     *
     * @return array
     */
    public function getOptions()
    {
        return $this->options;
    }

    /**
     * Sets the ground overlay options
     *
     * @param array $options
     */
    public function setOptions(array $options)
    {<commit_msg>Update ground overlay setBound to take different arguments<commit_after><?php

namespace Ivory\GoogleMapBundle\Model;

/**
 * Ground overlay which describes a google map ground overlay
 *
 * @see http://code.google.com/apis/maps/documentation/javascript/reference.html#GroundOverlay
 * @author GeLo <<EMAIL>>
 */
class GroundOverlay extends AbstractAsset
{
    /**
     * @var string Group Overlay image url
     */
    protected $url = null;

    /**
     * @var Ivory\GoogleMapBundle\Model\Bound Ground overlay bound
     */
    protected $bound = null;

    /**
     * @var array Ground overlay options
     * @see http://code.google.com/apis/maps/documentation/javascript/reference.html#GroundOverlayOptions
     */
    protected $options = array();

    /**
     * Create a ground overlay
     */
    public function __construct()
    {
        parent::__construct();
        
        $this->setPrefixJavascriptVariable('ground_overlay_');
        
        $this->bound = new Bound();
        $this->bound->setNorthEast(new Coordinate());
        $this->bound->setSouthWest(new Coordinate());
    }

    /**
     * Gets the ground overlay image url
     *
     * @return string
     */
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * Sets the ground overlay image url
     *
     * @param string $url
     */
    public function setUrl($url)
    {
        $this->url = $url;
    }

    /**
     * Gets the ground overlay bound
     *
     * @return Ivory\GoogleMapBundle\Model\Bound
     */
    public function getBound()
    {
        return $this->bound;
    }

    /**
     * Sets the ground overlay bound
     *
     * Available prototype:
     * 
     * public function setBound(Ivory\GoogleMapBundle\Model\Bound $bound)
     * public function setBount(Ivory\GoogleMapBundle\Model\Coordinate $southWest, Ivory\GoogleMapBundle\Model\Coordinate $northEast)
     * public function setBound(integer $southWestLatitude, integer $southWestLongitude, integer $northEastLatitude, integer $northEastLongitude, boolean southWestNoWrap = true, boolean $northEastNoWrap = true)
     */
    public function setBound()
    {
        $args = func_get_args();
        
        if(isset($args[0]) && ($args[0] instanceof Bound))
            $this->bound = $args[0];
        else if(isset($args[0]) && ($args[0] instanceof Coordinate) && isset($args[1]) && ($args[1] instanceof Coordinate))
        {
            $this->bound->setSouthWest($args[0]);
            $this->bound->setNorthEast($args[1]);
        }
        else if(isset($args[0]) && is_int($args[0]) && isset($args[1]) && is_int($args[1]) && isset($args[2]) && is_int($args[2]) && isset($args[3]) && is_int($args[3]))
        {
            $this->bound->setSouthWest(new Coordinate($args[0], $args[1]));
            $this->bound->setNorthEast(new Coordinate($args[2], $args[3]));
            
            if(isset($args[4]) && is_bool($args[4]))
            {
                $this->bound->getSouthWest()->setNoWrap($args[4]);
                
                if(isset($args[5]) && is_bool($args[5]))
                    $this->bound->getNorthEast()->setNoWrap($args[5]);
            }
        }
        else
            throw new \InvalidArgumentException();
    }

    /**
     * Gets the ground overlay options
     *
     * @return array
     */
    public function getOptions()
    {
        return $this->options;
    }

    /**
     * Sets the ground overlay options
     *
     * @param array $options
     */
    public function setOptions(array $options)
    {
{'fraction_non_alphanumeric': 0.1341983647351582, 'fraction_numerical': 0.004799146818343406, 'mean_word_length': 2.173716864072194, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 43, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5158050', 'n_tokens_mistral': 1675, 'n_tokens_neox': 1610, 'n_words': 355}