Return the user's environments.
public getEnvironments ( Platformsh\Client\Model\Project $project, boolean | null $refresh = null, boolean $events = true ) : Platformsh\Client\Model\Environment[] | ||
$project | Platformsh\Client\Model\Project | The project. |
$refresh | boolean | null | Whether to refresh the list. |
$events | boolean | Whether to update Drush aliases if the list changes. |
리턴 | Platformsh\Client\Model\Environment[] | The user's environments. |