PETToken

class SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken
Source

modules/php/Object/PETToken.php#19

Implements

SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Interfaces\PETDeckCardInterface

Summary

Methods

Properties

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$deckId
Token's id for the Deck component
Source

modules/php/Object/PETToken.php#26

Type

int

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$deckType
Token's type for the deck component
Source

modules/php/Object/PETToken.php#33

Type

int

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$deckTypeArg
Token's type_arg for the Deck component, currently not used, defaults to 0
Source

modules/php/Object/PETToken.php#40

Type

int

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$location
Token's location for the Deck component
Source

modules/php/Object/PETToken.php#46

Type

string

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$locationArg
Token's location_arg for the Deck component.
Used for all tokens: 1 means the token has been used (Knowledge Token) or brought into play (Age token), 0 means
the token hasn't been used or brought into play
Source

modules/php/Object/PETToken.php#56

Type

int

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$name
Token's name
Source

modules/php/Object/PETToken.php#63

Type

string

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$knowledgeType
Token's knowledge type if the token is a Knowledge Token
Source

modules/php/Object/PETToken.php#70

Type

int

private static property SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::$numberOfTokensByPlayerCount
Array of tokens number depending on players number
Source

modules/php/Object/PETToken.php#76

Type

int[]

Methods

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getDeckId()
Source

modules/php/Object/PETToken.php#81

Returns

int

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setDeckId($deckId)
Source

modules/php/Object/PETToken.php#91

Parameters
  • $deckId (int)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getDeckType()
Source

modules/php/Object/PETToken.php#100

Returns

int

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setDeckType($deckType)
Source

modules/php/Object/PETToken.php#110

Parameters
  • $deckType (int)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getDeckTypeArg()
Source

modules/php/Object/PETToken.php#119

Returns

int

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setDeckTypeArg($deckTypeArg)
Source

modules/php/Object/PETToken.php#129

Parameters
  • $deckTypeArg (int)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getLocation()
Source

modules/php/Object/PETToken.php#138

Returns

string

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setLocation($location)
Source

modules/php/Object/PETToken.php#148

Parameters
  • $location (string)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getLocationArg()
Source

modules/php/Object/PETToken.php#157

Returns

int

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setLocationArg($locationArg)
Source

modules/php/Object/PETToken.php#167

Parameters
  • $locationArg (int)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getName()
Source

modules/php/Object/PETToken.php#176

Returns

string

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setName($name)
Source

modules/php/Object/PETToken.php#186

Parameters
  • $name (string)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::isKnowledgeToken()
Source

modules/php/Object/PETToken.php#195

Returns

bool

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getKnowledgeType()
Source

modules/php/Object/PETToken.php#203

Returns

int | null

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setKnowledgeType($type)
Source

modules/php/Object/PETToken.php#213

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::getNumberOfTokensByPlayerCount($playerCount)
Source

modules/php/Object/PETToken.php#227

Parameters
  • $playerCount (int)

Returns

int | null

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::setNumberOfTokensByPlayerCount($numberOfTokensByPlayerCount)
Source

modules/php/Object/PETToken.php#241

Parameters
  • $numberOfTokensByPlayerCount (int[])

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::toDeckCreateCardArray($playerCount)
Returns the array for the createCard method corresponding to the token
Source

modules/php/Object/PETToken.php#254

Parameters
  • $playerCount (int)

Returns

array

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::toDeckCardArray()
Returns an array describing the token for the Deck component
Source

modules/php/Object/PETToken.php#268

Returns

array

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken::jsonSerialize()
Return the array describing the token when it is sent as a notification item and JSON serialized
Source

modules/php/Object/PETToken.php#284

Returns

array