Esempio n. 1
0
 /**
  * @param \GitlabCI\Client $oClient
  * @param array $aParams
  * @return \GitlabCI\Model\Project
  */
 public static function update(\GitlabCI\Client $oClient, array $aParams = array())
 {
     $aData = $oClient->api('builds')->update($this->getProjectId(), $aParams);
     return static::fromArray($oClient, $aData);
 }
Esempio n. 2
0
 /**
  * @param \GitlabCI\Client $oClient
  * @param scalar $sToken
  * @return \GitlabCI\Model\Runner
  */
 public static function register(\GitlabCI\Client $oClient, $sToken)
 {
     $aData = $oClient->api('runners')->update($this->getRunnerId(), $sToken);
     return static::fromArray($oClient, $aData);
 }