protected function createInstallationMethod($method)
    {
        if (is_string($method)) {
            return InstallationMethod::memberByValue($method, false);
        }

        if (is_object($method)) {
            $methods = array();

            foreach ($method as $project => $projectMethod) {
                $methods[$project] =
                    InstallationMethod::memberByValue($projectMethod, false);
            }

            return $methods;
        }

        return null;
    }
protected function createInstallationMethod($method)
    {
        if (is_string($method)) {
            return InstallationMethod::memberByValue($method, false);
        }

        if (is_object($method)) {
            $methods = array();

            foreach ($method as $project => $projectMethod) {
                $methods[$project] =
                    InstallationMethod::memberByValue($projectMethod, false);
            }

            return $methods;
        }

        return null;
    }
protected function createInstallationMethod ( $ method ) { if ( is_string ( $ method ) ) { return InstallationMethod :: memberByValue ( $ method , false ) ; } if ( is_object ( $ method ) ) { $ methods = array ( ) ; foreach ( $ method as $ project => $ projectMethod ) { $ methods [ $ project ] = InstallationMethod :: memberByValue ( $ projectMethod , false ) ; } return $ methods ; } return null ; }
Create a installation method enumeration from the supplied raw data.

@param string|stdClass|null $method The raw installation method data.

@return InstallationMethod|array<string,InstallationMethod>|null The processed installation method.
Create a installation method enumeration from the supplied raw data .