original_string: protected function getReferencingField($table, $name)
      {
          $references = $this->getReferences();
          $rf = null;
          foreach ($references as $item) {
              if ($item->refTable === $table && $table . '_by_' . implode('_', $item->refField) === $name) {
                  $rf = $item->refField[0];
                  break;
              }
          }
  
          return $rf;
      }
code: protected function getReferencingField($table, $name)
      {
          $references = $this->getReferences();
          $rf = null;
          foreach ($references as $item) {
              if ($item->refTable === $table && $table . '_by_' . implode('_', $item->refField) === $name) {
                  $rf = $item->refField[0];
                  break;
              }
          }
  
          return $rf;
      }
code_tokens: protected function getReferencingField ( $ table , $ name ) { $ references = $ this -> getReferences ( ) ; $ rf = null ; foreach ( $ references as $ item ) { if ( $ item -> refTable === $ table && $ table . '_by_' . implode ( '_' , $ item -> refField ) === $ name ) { $ rf = $ item -> refField [ 0 ] ; break ; } } return $ rf ; }
docstring: Gets the foreign key of the referenced table
  
  @param string $table
  @param string $name
  
  @return mixed|null
docstring_tokens: Gets the foreign key of the referenced table