@@ 26-33 (lines=8) @@ | ||
23 | }); |
|
24 | } |
|
25 | ||
26 | public function job(int $id): PromiseInterface |
|
27 | { |
|
28 | return $this->getTransport()->request( |
|
29 | 'jobs/' . $id |
|
30 | )->then(function ($response) { |
|
31 | return resolve($this->getTransport()->getHydrator()->hydrate('Job', $response['job'])); |
|
32 | }); |
|
33 | } |
|
34 | } |
|
35 |
@@ 28-35 (lines=8) @@ | ||
25 | }); |
|
26 | } |
|
27 | ||
28 | public function build(int $id): PromiseInterface |
|
29 | { |
|
30 | return $this->getTransport()->request( |
|
31 | 'repos/' . $this->slug() . '/builds/' . $id |
|
32 | )->then(function ($response) { |
|
33 | return resolve($this->getTransport()->getHydrator()->hydrate('Build', $response['build'])); |
|
34 | }); |
|
35 | } |
|
36 | ||
37 | public function commits(): ObservableInterface |
|
38 | { |
|
@@ 48-55 (lines=8) @@ | ||
45 | }); |
|
46 | } |
|
47 | ||
48 | public function settings(): PromiseInterface |
|
49 | { |
|
50 | return $this->getTransport()->request( |
|
51 | 'repos/' . $this->id() . '/settings' |
|
52 | )->then(function ($response) { |
|
53 | return resolve($this->getTransport()->getHydrator()->hydrate('Settings', $response['settings'])); |
|
54 | }); |
|
55 | } |
|
56 | ||
57 | public function isActive(): PromiseInterface |
|
58 | { |