f5208444dd5cebe20af2a7067757945edde1e21a
[pharext/pharext.org] / app / Github / API / Hooks / HooksCallback.php
1 <?php
2
3 namespace app\Github\API\Hooks;
4
5 use app\Github\API;
6 use app\Github\API\Callback;
7
8 class HooksCallback extends Callback
9 {
10 private $repo;
11
12 function __construct(API $api, $repo) {
13 parent::__construct($api);
14 $this->repo = $repo;
15 }
16
17 function __invoke($json, $links = null) {
18 $this->repo->hooks = $json;
19 }
20 }