/** * Get all card levels. * * @return self */ protected function getAllCardLevels() { foreach ($this->hands as $hand) { $this->levels[implode(' ', $hand)] = $this->rankHandler->assignCategory($hand); } return $this; }