/**
  * @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);
 }
 /**
  * @param string $sPath
  * @param array $aParameters
  * @param array $aRequestHeaders
  * @return type
  */
 protected function delete($sPath, array $aParameters = array(), $aRequestHeaders = array())
 {
     return $this->client->getHttpClient()->delete($sPath, $aParameters, $aRequestHeaders)->getContent();
 }
Example #3
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);
 }