PETDeckCardInterface
- interface SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Interfaces\PETDeckCardInterface
- This interface is meant to be used by any class interacting with the Deck component. It complies with the specificationsgiven in BGA docs (https://en.doc.boardgamearena.com/Deck#The_5_properties_of_each_card). All methods described inthis interface only apply to object, care is needed to persist the object to the DB.
- Source
- Parent
JsonSerializable
Summary
Methods
Methods
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Interfaces\PETDeckCardInterface::getDeckId()
- Returns the object's deck id
- Source
- Returns
int | null
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Interfaces\PETDeckCardInterface::setDeckId($deckId)
- Used by DB hydrator to set the id of the object
- Source
- Parameters
$deckId (int)
- Returns
$this
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Interfaces\PETDeckCardInterface::getDeckType()
- Returns the object's deck type
- Source
- Returns
int | null
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Interfaces\PETDeckCardInterface::setDeckType($deckType)
- Sets the object's deck type
- Source
- Parameters
$deckType (int)
- Returns
$this
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Interfaces\PETDeckCardInterface::getLocation()
- Returns the object's location ine the Deck sense
- Source
- Returns
string | null
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Interfaces\PETDeckCardInterface::setLocation($location)
- Sets the object's location
- Source
- Parameters
$location (string)
- Returns
$this
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Interfaces\PETDeckCardInterface::getLocationArg()
- Return the object's location_arg
- Source
- Returns
int | null
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Interfaces\PETDeckCardInterface::setLocationArg($locationArg)
- Sets the object's location_arg
- Source
- Parameters
$locationArg (int)
- Returns
$this
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Interfaces\PETDeckCardInterface::toDeckCreateCardArray($playerCount)
- Returns an array that can be used as argument for Deck's createCards method
- Source
- Parameters
$playerCount (int)
- Returns
array
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Interfaces\PETDeckCardInterface::toDeckCardArray()
- Returns an array that is used in notifications and getAllDatas methods
- Source
- Returns
array