\D3strukt0r\VotifierClient\VoteType
VoteInterface¶
-
interface
D3strukt0r\VotifierClient\VoteType\VoteInterface¶ The interface VoteInterface will be used for different kinds of vote packages.
-
public
getServiceName() → string¶ The name of the list/service.
Returns: string — Returns the name of the list/service
-
public
getUsername() → string¶ The username who wants to receive the rewards.
Returns: string — Returns the username who wants to receive the rewards
-
public
getAddress() → string¶ The IP Address of the user.
Returns: string — Returns the IP Address of the user
-
public
getTimestamp() → int|null¶ Get the time when the vote was sent.
Returns: int|null — Returns the time when the vote was sent
-
public
setTimestamp([$timestamp = null]) → self¶ Set the time when the vote will be sent.
Parameters: - $timestamp (\DateTime|null) – (Optional) Either give a wanted timestamp or it will use the current time
Returns: self — Returns the class itself, for doing multiple things at once
-
public