protected function showBindings(Collection $bindings)
    {
        $table = [];

        $bindings->map(function ($item, $key) {
            return [
                'shortName' => shorten($key),
                'abstract'  => $key,
                'concrete'  => $item
            ];
        })->sort(function ($a, $b) {
            return $a['shortName'] > $b['shortName'];
        })->each(function ($binding) use (&$table) {
            $table[] = [
                $binding['shortName'],
                $binding['abstract'],
                $binding['concrete'],
            ];
        });

        $this->table($this->headers, $table);
    }
protected function showBindings(Collection $bindings)
    {
        $table = [];

        $bindings->map(function ($item, $key) {
            return [
                'shortName' => shorten($key),
                'abstract'  => $key,
                'concrete'  => $item
            ];
        })->sort(function ($a, $b) {
            return $a['shortName'] > $b['shortName'];
        })->each(function ($binding) use (&$table) {
            $table[] = [
                $binding['shortName'],
                $binding['abstract'],
                $binding['concrete'],
            ];
        });

        $this->table($this->headers, $table);
    }
protected function showBindings ( Collection $ bindings ) { $ table = [ ] ; $ bindings -> map ( function ( $ item , $ key ) { return [ 'shortName' => shorten ( $ key ) , 'abstract' => $ key , 'concrete' => $ item ] ; } ) -> sort ( function ( $ a , $ b ) { return $ a [ 'shortName' ] > $ b [ 'shortName' ] ; } ) -> each ( function ( $ binding ) use ( & $ table ) { $ table [ ] = [ $ binding [ 'shortName' ] , $ binding [ 'abstract' ] , $ binding [ 'concrete' ] , ] ; } ) ; $ this -> table ( $ this -> headers , $ table ) ; }
Displays the list of enum bindings on the output

@param Collection $bindings
Displays the list of enum bindings on the output