Exemplo n.º 1
0
 public static function castFrom(Model\MergeRequest $mr)
 {
     $cast = new static($mr->project, $mr->id, $mr->getClient());
     foreach (static::$properties as $property) {
         $cast->{$property} = $mr->{$property};
     }
     return $cast;
 }
Exemplo n.º 2
0
 /**
  * @param int $id
  * @return MergeRequest
  */
 public function mergeMergeRequest($id)
 {
     $mr = new MergeRequest($this, $id, $this->getClient());
     return $mr->merge();
 }