/** * Get game strategy by name * * @param $name * * @return mixed * @throws \Ticki\Core\Exception\UnknownStrategyException */ public function getByName($name) { if (!isset($this->strategies[$name])) { throw ExceptionFactory::undefinedStrategyException($name); } return $this->strategies[$name]; }