public function setForRange($key, \DateTime $start, \DateTime $end, $value)
    {
        $this->data[$this->keyForRange($key, $start, $end)] = $value;
    }
public function setForRange($key, \DateTime $start, \DateTime $end, $value)
    {
        $this->data[$this->keyForRange($key, $start, $end)] = $value;
    }
public function setForRange ( $ key , \ DateTime $ start , \ DateTime $ end , $ value ) { $ this -> data [ $ this -> keyForRange ( $ key , $ start , $ end ) ] = $ value ; }
Set value for a key for a given date range.

@param string $key Counter key.
@param \DateTime $start Start date.
@param \DateTime $end End date.
@param float|int $value Value to set.
@return void
Set value for a key for a given date range .