@@ 9-23 (lines=15) @@ | ||
6 | use ApiClients\Client\Github\Resource\Repository\Branch as BaseBranch; |
|
7 | use React\Promise\PromiseInterface; |
|
8 | ||
9 | class Branch extends BaseBranch |
|
10 | { |
|
11 | public function refresh(): Branch |
|
12 | { |
|
13 | throw new \Exception('TODO: create refresh method!'); |
|
14 | } |
|
15 | ||
16 | public function detailedCommit(): PromiseInterface |
|
17 | { |
|
18 | return $this->handleCommand(new DetailedCommitCommand( |
|
19 | \str_replace('/commits/' . $this->commit->sha(), '', \explode('/repos/', $this->commit->url())[1]), |
|
20 | $this->commit->sha() |
|
21 | )); |
|
22 | } |
|
23 | } |
|
24 |
@@ 9-23 (lines=15) @@ | ||
6 | use ApiClients\Client\Github\Resource\Tree as BaseTree; |
|
7 | use React\Promise\PromiseInterface; |
|
8 | ||
9 | class Tree extends BaseTree |
|
10 | { |
|
11 | public function refresh(): Tree |
|
12 | { |
|
13 | throw new \Exception('TODO: create refresh method!'); |
|
14 | } |
|
15 | ||
16 | public function detailedCommit(): PromiseInterface |
|
17 | { |
|
18 | return $this->handleCommand(new DetailedCommitCommand( |
|
19 | \str_replace('/commits/' . $this->sha, '', \explode('/repos/', $this->url)[1]), |
|
20 | $this->sha |
|
21 | )); |
|
22 | } |
|
23 | } |
|
24 |