original_string: public function findByKey($key)
      {
          $document = $this->collection->findOne(['_id' => $key]);
  
          return $this->hydrateEntity($document);
      }
code: public function findByKey($key)
      {
          $document = $this->collection->findOne(['_id' => $key]);
  
          return $this->hydrateEntity($document);
      }
code_tokens: public function findByKey ( $ key ) { $ document = $ this -> collection -> findOne ( [ '_id' => $ key ] ) ; return $ this -> hydrateEntity ( $ document ) ; }
docstring: Finds an item by key
  
  @param mixed $key
  
  @return mixed
docstring_tokens: Finds an item by key