src/Actions/ManagesServers.php
public function createServer(array $data)
    {
        $response = $this->post('servers', $data);

        $output = $response['server'];
        $output['sudo_password'] = @$response['sudo_password'];
        $output['database_password'] = @$response['database_password'];
        $output['provision_command'] = @$response['provision_command'];

        return new Server($output, $this);
    }
public function createServer(array $data)
    {
        $response = $this->post('servers', $data);

        $output = $response['server'];
        $output['sudo_password'] = @$response['sudo_password'];
        $output['database_password'] = @$response['database_password'];
        $output['provision_command'] = @$response['provision_command'];

        return new Server($output, $this);
    }
public function createServer ( array $ data ) { $ response = $ this -> post ( 'servers' , $ data ) ; $ output = $ response [ 'server' ] ; $ output [ 'sudo_password' ] = @ $ response [ 'sudo_password' ] ; $ output [ 'database_password' ] = @ $ response [ 'database_password' ] ; $ output [ 'provision_command' ] = @ $ response [ 'provision_command' ] ; return new Server ( $ output , $ this ) ; }
Create a new server.

@param  array $data
@return Server
Create a new server .