/** * @param string $branch_name * @return Branch */ public function protectBranch($branch_name) { $branch = new Branch($this, $branch_name); $branch->setClient($this->getClient()); return $branch->protect(); }
/** * @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); }