\ReleaseStage
The evReleaseStage class is responsible for determining the environment/stage of the current release.
There are currently four valid release stages:
- development
- testing
- staging
- production
Synopsis
class ReleaseStage
implements
ReleaseStageInterface
{
- // constants
- const DEVELOPMENT = 'development';
- const TESTING = 'testing';
- const STAGING = 'staging';
- const PRODUCTION = 'production';
- // members
- protected static $current;
- // methods
- public string get()
- public array getAll()
- public boolean isDevelopment()
- public boolean isTesting()
- public boolean isStaging()
- public boolean isProduction()
Hierarchy
Implements
Constants
Name | Value |
---|---|
DEVELOPMENT | 'development' |
TESTING | 'testing' |
STAGING | 'staging' |
PRODUCTION | 'production' |
Members
protected
- $current
Methods
public
- get() — Get release stage
- getAll() — Get all release stages
- isDevelopment() — Check if release stage is development
- isProduction() — Check if release stage is production
- isStaging() — Check if release stage is staging
- isTesting() — Check if release stage is testing