| @@ 12-20 (lines=9) @@ | ||
| 9 | ||
| 10 | class Build extends BaseBuild |
|
| 11 | { |
|
| 12 | public function jobs(): array |
|
| 13 | { |
|
| 14 | return await( |
|
| 15 | Promise::fromObservable( |
|
| 16 | $this->getTransport()->getHydrator()->buildAsyncFromSync('Build', $this)->jobs()->toArray() |
|
| 17 | ), |
|
| 18 | $this->getTransport()->getLoop() |
|
| 19 | ); |
|
| 20 | } |
|
| 21 | ||
| 22 | public function job(int $id): Job |
|
| 23 | { |
|
| @@ 14-22 (lines=9) @@ | ||
| 11 | ||
| 12 | class Repository extends BaseRepository |
|
| 13 | { |
|
| 14 | public function builds(): array |
|
| 15 | { |
|
| 16 | return await( |
|
| 17 | Promise::fromObservable( |
|
| 18 | $this->getTransport()->getHydrator()->buildAsyncFromSync('Repository', $this)->builds()->toArray() |
|
| 19 | ), |
|
| 20 | $this->getTransport()->getLoop() |
|
| 21 | ); |
|
| 22 | } |
|
| 23 | ||
| 24 | public function build(int $id): Build |
|
| 25 | { |
|
| @@ 32-40 (lines=9) @@ | ||
| 29 | ); |
|
| 30 | } |
|
| 31 | ||
| 32 | public function commits(): array |
|
| 33 | { |
|
| 34 | return await( |
|
| 35 | Promise::fromObservable( |
|
| 36 | $this->getTransport()->getHydrator()->buildAsyncFromSync('Repository', $this)->commits()->toArray() |
|
| 37 | ), |
|
| 38 | $this->getTransport()->getLoop() |
|
| 39 | ); |
|
| 40 | } |
|
| 41 | } |
|
| 42 | ||