public function isColumnInPK(TablePrimaryKey $pk): bool
    {
        return in_array($this->name, $pk->columns, true);
    }
public function isColumnInPK(TablePrimaryKey $pk): bool
    {
        return in_array($this->name, $pk->columns, true);
    }
public function isColumnInPK ( TablePrimaryKey $ pk ) : bool { return in_array ( $ this -> name , $ pk -> columns , true ) ; }
Checks if column is a part of primary key.
@param TablePrimaryKey $pk
@return bool
Checks if column is a part of primary key .