| 1 | <?php |
||
| 7 | class Application extends Resource |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The application id currently being worked on |
||
| 11 | * |
||
| 12 | * @param integer |
||
| 13 | */ |
||
| 14 | protected $appId; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Set the application id |
||
| 18 | * |
||
| 19 | * @param integer $appId |
||
| 20 | * @throws Exception If appId is not a valid integer |
||
| 21 | * @return Application |
||
| 22 | */ |
||
| 23 | public function appId($appId) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Check we have an application id before continuing |
||
| 32 | * |
||
| 33 | * @throws Exception |
||
| 34 | * @return boolean |
||
| 35 | */ |
||
| 36 | protected function checkAppId() |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Create a new deployment instance |
||
| 48 | * |
||
| 49 | * @return Deployments |
||
| 50 | */ |
||
| 51 | public function deployments() |
||
| 61 | } |
||
| 62 |