public function getPrimaryKeyMetadata(): ?ColumnMetadata
    {
        $filteredColumnList = array_filter($this->columnMetadataList, function (ColumnMetadata $columnMetadata) {
            return $columnMetadata->isPrimaryKey();
        });

        return (count($filteredColumnList)) ? current($filteredColumnList) : null;
    }
public function getPrimaryKeyMetadata(): ?ColumnMetadata
    {
        $filteredColumnList = array_filter($this->columnMetadataList, function (ColumnMetadata $columnMetadata) {
            return $columnMetadata->isPrimaryKey();
        });

        return (count($filteredColumnList)) ? current($filteredColumnList) : null;
    }
public function getPrimaryKeyMetadata ( ) : ? ColumnMetadata { $ filteredColumnList = array_filter ( $ this -> columnMetadataList , function ( ColumnMetadata $ columnMetadata ) { return $ columnMetadata -> isPrimaryKey ( ) ; } ) ; return ( count ( $ filteredColumnList ) ) ? current ( $ filteredColumnList ) : null ; }
Returns the primary key column metadata.
Returns the primary key column metadata .