src/renderers/ColumnRenderer.php
/**
     * Renders the array part with column definition (name => definition).
     * @param ColumnInterface $column
     * @param PrimaryKeyInterface|null $primaryKey
     * @param int $indent
     * @param string|null $schema
     * @param string|null $engineVersion
     * @return string|null
     */
Renders the array part with column definition (name => definition).
Renders the array part with column definition ( name = > definition ) .
public function render(
        ColumnInterface $column,
        PrimaryKeyInterface $primaryKey = null,
        int $indent = 0,
        string $schema = null,
        string $engineVersion = null
    ): ?string {
        $template = str_repeat(' ', $indent) . $this->definitionTemplate;
        return str_replace(
            [
                '{columnName}',
                '{columnDefinition}'
            ],
            [
                $column->getName(),
                $this->renderDefinition($column, $primaryKey, $schema, $engineVersion)
            ],
            $template
        );
    }
public function render ( ColumnInterface $ column , PrimaryKeyInterface $ primaryKey = null , int $ indent = 0 , string $ schema = null , string $ engineVersion = null ) : ? string { $ template = str_repeat ( ' ' , $ indent ) . $ this -> definitionTemplate ; return str_replace ( [ '{columnName}' , '{columnDefinition}' ] , [ $ column -> getName ( ) , $ this -> renderDefinition ( $ column , $ primaryKey , $ schema , $ engineVersion ) ] , $ template ) ; }
Renders the array part with column definition (name => definition).
Renders the array part with column definition ( name = > definition ) .