public function setFor($key, \DateTime $date, $value)
    {
        $this->data[$this->keyFor($key, $date)] = $value;
    }
public function setFor($key, \DateTime $date, $value)
    {
        $this->data[$this->keyFor($key, $date)] = $value;
    }
public function setFor ( $ key , \ DateTime $ date , $ value ) { $ this -> data [ $ this -> keyFor ( $ key , $ date ) ] = $ value ; }
Set value for a key for a given date.

@param string $key Counter key.
@param \DateTime $date Date.
@param float|int $value Value to set.
@return void
Set value for a key for a given date .