src/Output/Products.php
public function versions(OutputInterface $output, array $response)
    {
        $this->printList($output,
            ['Name', 'Language', 'Key', 'Type', 'Version'],
            ['name', 'language', 'prod_key', 'prod_type', 'version'],
            $response
        );

        $this->printTable($output,
            ['Version', 'Released At'],
            ['version', 'released_at'],
            $response['versions'],
            function ($key, $value) {
                if ('released_at' !== $key) {
                    return $value;
                }

                return date('Y-m-d H:i:s', strtotime($value));
            }
        );
    }
public function versions(OutputInterface $output, array $response)
    {
        $this->printList($output,
            ['Name', 'Language', 'Key', 'Type', 'Version'],
            ['name', 'language', 'prod_key', 'prod_type', 'version'],
            $response
        );

        $this->printTable($output,
            ['Version', 'Released At'],
            ['version', 'released_at'],
            $response['versions'],
            function ($key, $value) {
                if ('released_at' !== $key) {
                    return $value;
                }

                return date('Y-m-d H:i:s', strtotime($value));
            }
        );
    }
public function versions ( OutputInterface $ output , array $ response ) { $ this -> printList ( $ output , [ 'Name' , 'Language' , 'Key' , 'Type' , 'Version' ] , [ 'name' , 'language' , 'prod_key' , 'prod_type' , 'version' ] , $ response ) ; $ this -> printTable ( $ output , [ 'Version' , 'Released At' ] , [ 'version' , 'released_at' ] , $ response [ 'versions' ] , function ( $ key , $ value ) { if ( 'released_at' !== $ key ) { return $ value ; } return date ( 'Y-m-d H:i:s' , strtotime ( $ value ) ) ; } ) ; }
output for the versions API.

@param OutputInterface $output
@param array           $response
output for the versions API .