\de\m4taiori\spiget4php\objSpigetAuthor

Class SpigetAuthor

Summary

Methods
Properties
Constants
__construct()
getName()
getIcon()
getId()
toJson()
of()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$author
N/A

Properties

$author

$author : array

The author source-array.

Type

array

Methods

__construct()

__construct(array  $author) 

SpigetAuthor constructor.

Parameters

array $author

The author source array.

getName()

getName() : string

Get the authors name.

Returns

string

getIcon()

getIcon() : array

Get the authors icon.

Returns

array

getId()

getId() : string

Get the authors id.

Returns

string

toJson()

toJson() : string

Get the author as json.

Returns

string

of()

of(string  $author) : \de\m4taiori\spiget4php\obj\SpigetAuthor

Create a new SpigetAuthor from the API-result.

Parameters

string $author

The authors name or id.

Throws

\de\m4taiori\spiget4php\exceptions\SpigetException

Returns

\de\m4taiori\spiget4php\obj\SpigetAuthor