| Method | Description | Returns | 
|---|---|---|
| isPrimary() | Check whether this environment is the primary environment | bool | 
| getLastVcsHash() | Fetches the last VCS hash for the environment. Returns the first 7 characters. | string | 
| getAnySiteLastVcsHash() | Fetches the last VCS hash the current environment, or (if this is empty) for any site's environment where the name matches the current environment. Returns the first 7 characters. | string | 
| getId() | int | |
| getName() | string | |
| getSitePath() | string | |
| getRootEntity() | Get the root entity associated with this environment | string | 
| getRootRecordId() | Get the ID of the root record associated with this environment | int | 
| getPrimaryHostname() | Hostname | |
| getVcsConfig() | VcsConfig | |
| getClient() | Client | |
| getSite() | Site | |
| getHostnames() | Collection (Hostname) | |
| getVcsLogs() | Collection (VcsLog) | |
| isNewRecord() | Check if the record is a new record | bool | 
| isHierarchicalModel() | Check whether a model is a hierarchical model, i.e. can have children | bool | 
| isVersionedModel() | Check whether a model is versioned | bool | 
Sites\Models\Frontend\Environment
Environment