\de\m4taiori\spiget4php\objSpigetResource

Class SpigetResource

Summary

Methods
Properties
Constants
__construct()
getExternal()
getFile()
getDescription()
getLikes()
getTestedVersions()
getVersions()
getUpdates()
getLinks()
getName()
getTag()
getVersion()
getAuthor()
getCategory()
getRating()
getIcon()
getReleaseDate()
getUpdateDate()
getDownloads()
getReviews()
getId()
toJson()
of()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$resource
N/A

Properties

$resource

$resource : array

The source-array.

Type

array

Methods

__construct()

__construct(array  $resource) 

SpigetResource constructor.

Parameters

array $resource

The source array of this resource.

getExternal()

getExternal() : boolean

Returns true if this resource is available via external sources.

Returns

boolean

getFile()

getFile() : array

Get the resource-file.

Returns

array

getDescription()

getDescription() : string

Get the resource description.

Returns

string

getLikes()

getLikes() : integer

Get the resources like-count.

Returns

integer

getTestedVersions()

getTestedVersions() : array

Get the versions the resource was tested on.

Returns

array

getVersions()

getVersions() : array

Get the versions of this resource.

Returns

array

getUpdates()

getUpdates() : array

Get the resource-updates.

Returns

array

getLinks()

getLinks() : integer

Get the like count of this resource.

Returns

integer

getName()

getName() : string

Get the name of this resource.

Returns

string

getTag()

getTag() : string

Get the tag of this resource.

Returns

string

getVersion()

getVersion() : array

Get the versions of this resource.

Returns

array

getAuthor()

getAuthor() : array

Get the author/s of this resource.

Returns

array

getCategory()

getCategory() : array

Get the resource-category.

Returns

array

getRating()

getRating() : integer

Get the resource rating.

Returns

integer

getIcon()

getIcon() : array

Get the resource icon.

Returns

array

getReleaseDate()

getReleaseDate() : string

Get the release date.

Returns

string

getUpdateDate()

getUpdateDate() : string

Get the update-date.

Returns

string

getDownloads()

getDownloads() : integer

Get the download count of this resource.

Returns

integer

getReviews()

getReviews() : array

Get the resource reviews.

Returns

array

getId()

getId() : string

Get the resource-id.

Returns

string

toJson()

toJson() : string

Get the resource as json.

Returns

string

of()

of(string  $resource) : \de\m4taiori\spiget4php\obj\SpigetResource

Create a new SpigetResource from the API-result.

Parameters

string $resource

The name or id of a resource.

Throws

\de\m4taiori\spiget4php\exceptions\SpigetException

Returns

\de\m4taiori\spiget4php\obj\SpigetResource