original_string: protected function getForeignKey($foreign)
      {
          $on = $this->wrapTable($foreign->on);
  
          // We need to columnize the columns that the foreign key is being defined for
          // so that it is a properly formatted list. Once we have done this, we can
          // return the foreign key SQL declaration to the calling method for use.
          $columns = $this->columnize($foreign->columns);
  
          $onColumns = $this->columnize((array) $foreign->references);
  
          return ", foreign key($columns) references $on($onColumns)";
      }
code: protected function getForeignKey($foreign)
      {
          $on = $this->wrapTable($foreign->on);
  
          // We need to columnize the columns that the foreign key is being defined for
          // so that it is a properly formatted list. Once we have done this, we can
          // return the foreign key SQL declaration to the calling method for use.
          $columns = $this->columnize($foreign->columns);
  
          $onColumns = $this->columnize((array) $foreign->references);
  
          return ", foreign key($columns) references $on($onColumns)";
      }
code_tokens: protected function getForeignKey ( $ foreign ) { $ on = $ this -> wrapTable ( $ foreign -> on ) ; // We need to columnize the columns that the foreign key is being defined for // so that it is a properly formatted list. Once we have done this, we can // return the foreign key SQL declaration to the calling method for use. $ columns = $ this -> columnize ( $ foreign -> columns ) ; $ onColumns = $ this -> columnize ( ( array ) $ foreign -> references ) ; return ", foreign key($columns) references $on($onColumns)" ; }
docstring: Get the SQL for the foreign key.
  
  @param  \Nova\Support\Fluent  $foreign
  @return string
docstring_tokens: Get the SQL for the foreign key .