1 | <?php |
||
9 | class BuildStatus |
||
10 | { |
||
11 | const BUILDING = 'BUILDING'; |
||
12 | const SUCCESS = 'SUCCESS'; |
||
13 | const FAILURE = 'FAILURE'; |
||
14 | const UNSTABLE = 'UNSTABLE'; |
||
15 | const ABORTED = 'ABORTED'; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $status; |
||
21 | |||
22 | /** |
||
23 | * @param string $status |
||
24 | */ |
||
25 | public function __construct($status) |
||
33 | |||
34 | /** |
||
35 | * @return int |
||
36 | */ |
||
37 | public function getCode() |
||
49 | |||
50 | /** |
||
51 | * @return string |
||
52 | */ |
||
53 | public function __toString() |
||
57 | } |
||
58 |