Scalr\Model\Entity\Server::isVersionSupported PHP Méthode

isVersionSupported() public méthode

Check if given version is less than scalarizr version
public isVersionSupported ( string $v ) : boolean
$v string Version
Résultat boolean
    public function isVersionSupported($v)
    {
        /* @var $property ServerProperty */
        $property = ServerProperty::findOne([['serverId' => $this->serverId], ['name' => Server::SZR_VESION]]);
        return self::versionInfo($property ? $property->value : '') >= self::versionInfo($v);
    }