\D3strukt0r\VotifierClient

Vote

class D3strukt0r\VotifierClient\Vote

This class is used for easy access to all classes and to send the votes.

private property $vote

\D3strukt0r\VotifierClient\VoteType\VoteInterface — The vote package

private property $server

\D3strukt0r\VotifierClient\ServerType\ServerTypeInterface — The server type information package

public __construct($vote, $serverType)

Created a Vote object.

Parameters:
  • $vote (\D3strukt0r\VotifierClient\VoteType\VoteInterface) – (Required) The vote package
  • $serverType (\D3strukt0r\VotifierClient\ServerType\ServerTypeInterface) – (Required) The server type information package
public send()

Sends the vote package to the server.

Throws:\Exception