original_string: public function getFor($key, \DateTime $date)
      {
          if (!$this->hasFor($key, $date)) {
              return null;
          }
  
          return $this->data[$this->keyFor($key, $date)];
      }
code: public function getFor($key, \DateTime $date)
      {
          if (!$this->hasFor($key, $date)) {
              return null;
          }
  
          return $this->data[$this->keyFor($key, $date)];
      }
code_tokens: public function getFor ( $ key , \ DateTime $ date ) { if ( ! $ this -> hasFor ( $ key , $ date ) ) { return null ; } return $ this -> data [ $ this -> keyFor ( $ key , $ date ) ] ; }
docstring: Get value for a key for a given date.
  
  @param string $key Counter key.
  @param \DateTime $date Date.
  @return float|int|null
docstring_tokens: Get value for a key for a given date .