Platformsh\Cli\SelfUpdate\ManifestStrategy::__construct PHP Метод

__construct() публичный Метод

ManifestStrategy constructor.
public __construct ( string $localVersion, string $manifestUrl, boolean $allowMajor = false, boolean $allowUnstable = false )
$localVersion string The local version.
$manifestUrl string The URL to a JSON manifest file. The manifest contains an array of objects, each containing a 'version', 'sha1', and 'url'.
$allowMajor boolean Whether to allow updating between major versions.
$allowUnstable boolean Whether to allow updating to an unstable version. Ignored if $localVersion is unstable and there are no new stable versions.
    public function __construct($localVersion, $manifestUrl, $allowMajor = false, $allowUnstable = false)
    {
        $this->localVersion = $localVersion;
        $this->manifestUrl = $manifestUrl;
        $this->allowMajor = $allowMajor;
        $this->allowUnstable = $allowUnstable;
    }