| | |
| | | 'glaz', 'goyo', 'gridlock', 'hibana', 'iq', 'jackal', 'jager', 'kaid', 'kapkan', |
| | | 'lesion', 'lion', 'maestro', 'maverick', 'mira', 'montagne', 'mozzie', 'mute', 'nokk', |
| | | 'nomad', 'pulse', 'rook', 'sledge', 'smoke', 'tachanka', 'thatcher', 'thermite', 'twitch', |
| | | 'valkyrie', 'vigil', 'warden', 'ying', 'zofia']; |
| | | 'valkyrie', 'vigil', 'warden', 'ying', 'zofia', 'wamai', 'kali']; |
| | | protected $state = [ |
| | | 'stripe' => [ |
| | | 'class' => 'team', |
| | |
| | | $this->setClass($state['stripe']["class"]); |
| | | } |
| | | |
| | | if (!empty($state['cup']['name']) && !empty($state['cup']['number'])) |
| | | if (!empty($state['cup']['name']) || !empty($state['cup']['number'])) |
| | | { |
| | | $this->setCup($state['cup']['number'], $state['cup']['name']); |
| | | $cupNum = $state['cup']['number'] ?? ''; |
| | | $cupName = $state['cup']['name'] ?? ''; |
| | | $this->setCup($cupNum, $cupName); |
| | | } |
| | | |
| | | if (!empty($state['team'])) |
| | |
| | | { |
| | | return $this->state; |
| | | } |
| | | |
| | | public function getType() |
| | | { |
| | | if (empty($this->state['stripe']['class'])) |
| | | { |
| | | return null; |
| | | } |
| | | |
| | | return $this->state['stripe']['class']; |
| | | } |
| | | } |