protect() public method

public protect ( boolean $devPush = false, boolean $devMerge = false ) : Branch
$devPush boolean
$devMerge boolean
return Branch
Exemplo n.º 1
0
 /**
  * @param string $branch_name
  * @return Branch
  */
 public function protectBranch($branch_name)
 {
     $branch = new Branch($this, $branch_name);
     $branch->setClient($this->getClient());
     return $branch->protect();
 }
Exemplo n.º 2
0
 /**
  * @param string $branch_name
  * @param bool $devPush
  * @param bool $devMerge
  * @return Branch
  */
 public function protectBranch($branch_name, $devPush = false, $devMerge = false)
 {
     $branch = new Branch($this, $branch_name);
     $branch->setClient($this->getClient());
     return $branch->protect($devPush, $devMerge);
 }