Gitlab\Model\Branch::show PHP Method

show() public method

public show ( ) : Branch
return Branch
    public function show()
    {
        $data = $this->api('repositories')->branch($this->project->id, $this->name);
        return static::fromArray($this->getClient(), $this->project, $data);
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @param string $branch_name
  * @return Branch
  */
 public function branch($branch_name)
 {
     $branch = new Branch($this, $branch_name);
     $branch->setClient($this->getClient());
     return $branch->show();
 }