public function actionList($showAllVersions = false)
    {
        foreach ($this->apis as $id => $versions) {
            foreach ($versions as $version => $api) {
                if (!$showAllVersions) {
                    $this->stdout($api->name . ' - ' . $api->title . "\n");
                    break;
                } else {
                    $this->stdout($api->id . ' - ' . $api->title . "\n");
                }
            }
        }
    }
public function actionList($showAllVersions = false)
    {
        foreach ($this->apis as $id => $versions) {
            foreach ($versions as $version => $api) {
                if (!$showAllVersions) {
                    $this->stdout($api->name . ' - ' . $api->title . "\n");
                    break;
                } else {
                    $this->stdout($api->id . ' - ' . $api->title . "\n");
                }
            }
        }
    }
public function actionList ( $ showAllVersions = false ) { foreach ( $ this -> apis as $ id => $ versions ) { foreach ( $ versions as $ version => $ api ) { if ( ! $ showAllVersions ) { $ this -> stdout ( $ api -> name . ' - ' . $ api -> title . "\n" ) ; break ; } else { $ this -> stdout ( $ api -> id . ' - ' . $ api -> title . "\n" ) ; } } } }
List all the available APIs

@param bool|false $showAllVersions Whether to show all versions of each API
List all the available APIs