original_string: public function getCollection()
      {
          if (!$this->collection) {
              // gridfs
              if ($this->isFile) {
                  $this->collection = $this->getConnection()->getMongoDB()->getGridFS($this->collectionName);
              // normal
              } else {
                  $this->collection = $this->getConnection()->getMongoDB()->selectCollection($this->collectionName);
              }
          }
  
          return $this->collection;
      }
code: public function getCollection()
      {
          if (!$this->collection) {
              // gridfs
              if ($this->isFile) {
                  $this->collection = $this->getConnection()->getMongoDB()->getGridFS($this->collectionName);
              // normal
              } else {
                  $this->collection = $this->getConnection()->getMongoDB()->selectCollection($this->collectionName);
              }
          }
  
          return $this->collection;
      }
code_tokens: public function getCollection ( ) { if ( ! $ this -> collection ) { // gridfs if ( $ this -> isFile ) { $ this -> collection = $ this -> getConnection ( ) -> getMongoDB ( ) -> getGridFS ( $ this -> collectionName ) ; // normal } else { $ this -> collection = $ this -> getConnection ( ) -> getMongoDB ( ) -> selectCollection ( $ this -> collectionName ) ; } } return $ this -> collection ; }
docstring: Returns the collection.
  
  @return \MongoCollection The collection.
  
  @api
docstring_tokens: Returns the collection .