src/Schema/State.php
public function findForeignKey(string $column): ?AbstractForeignKey
    {
        foreach ($this->foreignKeys as $reference) {
            if ($reference->getColumn() == $column) {
                return $reference;
            }
        }

        return null;
    }
public function findForeignKey(string $column): ?AbstractForeignKey
    {
        foreach ($this->foreignKeys as $reference) {
            if ($reference->getColumn() == $column) {
                return $reference;
            }
        }

        return null;
    }
public function findForeignKey ( string $ column ) : ? AbstractForeignKey { foreach ( $ this -> foreignKeys as $ reference ) { if ( $ reference -> getColumn ( ) == $ column ) { return $ reference ; } } return null ; }
Find foreign key by it's column or return null.

@param string $column
@return null|AbstractForeignKey
Find foreign key by it s column or return null .