getProjects() public method

Return the user's projects.
public getProjects ( boolean | null $refresh = null ) : Platformsh\Client\Model\Project[]
$refresh boolean | null Whether to refresh the list of projects.
return Platformsh\Client\Model\Project[] The user's projects, keyed by project ID.
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     $this->api = new Api();
     $this->projects = $this->api->isLoggedIn() ? $this->api->getProjects(false) : [];
     $this->welcomeCommand = new WelcomeCommand('welcome');
     $this->welcomeCommand->setApplication(new Application());
 }