public function show() { $data = $this->api('repositories')->branch($this->project->id, $this->name); return static::fromArray($this->getClient(), $this->project, $data); }
/** * @param string $branch_name * @return Branch */ public function branch($branch_name) { $branch = new Branch($this, $branch_name); $branch->setClient($this->getClient()); return $branch->show(); }