PETTokenFactory

class SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Factory\PETTokenFactory
Factory class to create token types, serves as bais for the Deck component
Source

modules/php/Factory/PETTokenFactory.php#22

Summary

Methods

Methods

public static SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Factory\PETTokenFactory::createToken($deckType, $name, $numberOfTokensByPlayerCounter, $knowledgeType=null)
Creates and return a token type object
Source

modules/php/Factory/PETTokenFactory.php#34

Parameters
  • $deckType (int) type of the token (1002 - 1005: Age tokens, 1100 - 1103: Knowledge tokens

  • $name (string)

  • $numberOfTokensByPlayerCounter (array)

  • $knowledgeType (int | null)

Returns

\SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Object\PETToken