/** * * @param Side $side * @param string $type * @return CardGroup */ public function getDeck(Side $side, $type) { $method = "get{$side->getAbbreviation()}{$type}Deck"; return $this->{$method}(); }
public function getCombatant(Side $s) { if ($s->isShadow()) { return $this->getShadow(); } else { return $this->getFP(); } }
public function getStartDice(Side $side) { return $this->{'getStart' . $side->getAbbreviation() . 'Dice'}(); }