Skip to content

Commit

Permalink
Update the returns of updateServer functions
Browse files Browse the repository at this point in the history
  • Loading branch information
TLingC committed Dec 16, 2019
1 parent a289786 commit 5e53beb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Actions/ManagesServers.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,35 +109,35 @@ public function forceDeleteServer($serverId)
*
* @param integer $serverId
* @param array $data
* @return void
* @return Server
*/
public function updateServerDetails($serverId, array $data)
{
return $this->patch("api/application/servers/$serverId/details", $data);
return new Server($this->patch("api/application/servers/$serverId/details", $data), $this);
}

/**
* Update build configuration of the given server.
*
* @param integer $serverId
* @param array $data
* @return void
* @return Server
*/
public function updateServerBuild($serverId, array $data)
{
return $this->patch("api/application/servers/$serverId/build", $data);
return new Server($this->patch("api/application/servers/$serverId/build", $data), $this);
}

/**
* Update startup parameters of the given server.
*
* @param integer $serverId
* @param array $data
* @return void
* @return Server
*/
public function updateServerStartup($serverId, array $data)
{
return $this->patch("api/application/servers/$serverId/startup", $data);
return new Server($this->patch("api/application/servers/$serverId/startup", $data), $this);
}

/**
Expand Down

0 comments on commit 5e53beb

Please sign in to comment.