PageParts
in package
Table of Contents
- $cache : mixed
- $dispatcher : mixed
- $doctrine : EntityManager
- $format : mixed
- $playerFunction : mixed
- $settings : mixed
- $stats : mixed
- $tempStat : mixed
- $translator : mixed
- $twig : mixed
- __construct() : mixed
- charStats() : array<string|int, mixed>
- Returns the current character stats or (if the character isn't logged in) the currently online players Hooks provided: charstats.
- getCharStats() : string
- Returns output formatted character stats.
- setCache() : self
- setDoctrine() : self
- setTempStat() : self
Properties
$cache
private
mixed
$cache
$dispatcher
private
mixed
$dispatcher
$doctrine
private
EntityManager
$doctrine
$format
private
mixed
$format
$playerFunction
private
mixed
$playerFunction
$settings
private
mixed
$settings
$stats
private
mixed
$stats
$tempStat
private
mixed
$tempStat
$translator
private
mixed
$translator
$twig
private
mixed
$twig
Methods
__construct()
public
__construct(Stats $stats, Environment $twig, Format $format, PlayerFunction $playerFunction, Settings $settings, EventDispatcherInterface $dispatcher, TranslatorInterface $translator) : mixed
Parameters
- $stats : Stats
- $twig : Environment
- $format : Format
- $playerFunction : PlayerFunction
- $settings : Settings
- $dispatcher : EventDispatcherInterface
- $translator : TranslatorInterface
Return values
mixed —charStats()
Returns the current character stats or (if the character isn't logged in) the currently online players Hooks provided: charstats.
public
charStats([bool $return = true ]) : array<string|int, mixed>
Parameters
- $return : bool = true
Return values
array<string|int, mixed> —The current stats for this character or the list of online players
getCharStats()
Returns output formatted character stats.
public
getCharStats(array<string|int, mixed> $buffs) : string
Parameters
- $buffs : array<string|int, mixed>
Return values
string —setCache()
public
setCache(CacheInterface $cache) : self
Parameters
- $cache : CacheInterface
Tags
Return values
self —setDoctrine()
public
setDoctrine(EntityManagerInterface $doctrine) : self
Parameters
- $doctrine : EntityManagerInterface
Tags
Return values
self —setTempStat()
public
setTempStat(TempStat $tempStat) : self
Parameters
- $tempStat : TempStat