/** * @brief Check if this version is less than an other one. * @param SchemaVersion $other The other version to compare at. */ public function isLess($other) { if ($this->getMajor() < $other->getMajor()) { return true; } if ($this->getMajor() == $other->getMajor() && $this->getMinor() < $other->getMinor()) { return true; } return false; }