public function getPlatform(string $platform) : Platform
    {
        if (!array_key_exists($platform, $this->platforms)) {
            throw new \OutOfBoundsException(
                'Platform "' . $platform . '" does not exist in data'
            );
        }

        return $this->platforms[$platform];
    }
public function getPlatform(string $platform) : Platform
    {
        if (!array_key_exists($platform, $this->platforms)) {
            throw new \OutOfBoundsException(
                'Platform "' . $platform . '" does not exist in data'
            );
        }

        return $this->platforms[$platform];
    }
public function getPlatform ( string $ platform ) : Platform { if ( ! array_key_exists ( $ platform , $ this -> platforms ) ) { throw new \ OutOfBoundsException ( 'Platform "' . $ platform . '" does not exist in data' ) ; } return $ this -> platforms [ $ platform ] ; }
Get a single platform data array

@param string $platform

@throws \OutOfBoundsException
@throws \UnexpectedValueException

@return Platform
Get a single platform data array