original_string: public function targetForeignKey($key = null)
      {
          deprecationWarning(
              'BelongToMany::targetForeignKey() is deprecated. ' .
              'Use setTargetForeignKey()/getTargetForeignKey() instead.'
          );
          if ($key !== null) {
              $this->setTargetForeignKey($key);
          }
  
          return $this->getTargetForeignKey();
      }
code: public function targetForeignKey($key = null)
      {
          deprecationWarning(
              'BelongToMany::targetForeignKey() is deprecated. ' .
              'Use setTargetForeignKey()/getTargetForeignKey() instead.'
          );
          if ($key !== null) {
              $this->setTargetForeignKey($key);
          }
  
          return $this->getTargetForeignKey();
      }
code_tokens: public function targetForeignKey ( $ key = null ) { deprecationWarning ( 'BelongToMany::targetForeignKey() is deprecated. ' . 'Use setTargetForeignKey()/getTargetForeignKey() instead.' ) ; if ( $ key !== null ) { $ this -> setTargetForeignKey ( $ key ) ; } return $ this -> getTargetForeignKey ( ) ; }
docstring: Sets the name of the field representing the foreign key to the target table.
  If no parameters are passed current field is returned
  
  @deprecated 3.4.0 Use setTargetForeignKey()/getTargetForeignKey() instead.
  @param string|null $key the key to be used to link both tables together
  @return string
docstring_tokens: Sets the name of the field representing the foreign key to the target table . If no parameters are passed current field is returned