src/Phinx/Db/Table.php
public function getColumn($name)
    {
        $columns = array_filter(
            $this->getColumns(),
            function ($column) use ($name) {
                return $column->getName() === $name;
            }
        );

        return array_pop($columns);
    }
public function getColumn($name)
    {
        $columns = array_filter(
            $this->getColumns(),
            function ($column) use ($name) {
                return $column->getName() === $name;
            }
        );

        return array_pop($columns);
    }
public function getColumn ( $ name ) { $ columns = array_filter ( $ this -> getColumns ( ) , function ( $ column ) use ( $ name ) { return $ column -> getName ( ) === $ name ; } ) ; return array_pop ( $ columns ) ; }
Gets a table column if it exists.

@param string $name Column name
@return \Phinx\Db\Table\Column|null
Gets a table column if it exists .