3 namespace app\Github\API\Tags
;
6 use app\Github\API\Callback
;
8 class TagsCallback
extends Callback
12 function __construct(API
$api, $repo) {
13 parent
::__construct($api);
17 protected function exec($json, $links = null) {
18 settype($this->repo
->tags
, "object");
19 foreach ($json as $tag) {
21 settype($this->repo
->tags
->$name, "object");
22 $this->repo
->tags
->$name->tag
= $tag;