version = $version; $this->isInclusive = $isInclusive; } /** * @return string */ public function getVersion() { return $this->version; } /** * @return bool */ public function isInclusive() { return $this->isInclusive; } /** * @return bool */ public function isZero() { return $this->getVersion() === '0.0.0.0-dev' && $this->isInclusive(); } /** * @return bool */ public function isPositiveInfinity() { return $this->getVersion() === PHP_INT_MAX.'.0.0.0' && !$this->isInclusive(); } /** * Compares a bound to another with a given operator. * * @param Bound $other * @param string $operator * * @return bool */ public function compareTo(Bound $other, $operator) { if (!\in_array($operator, array('<', '>'), true)) { throw new \InvalidArgumentException('Does not support any other operator other than > or <.'); } // If they are the same it doesn't matter if ($this == $other) { return false; } $compareResult = version_compare($this->getVersion(), $other->getVersion()); // Not the same version means we don't need to check if the bounds are inclusive or not if (0 !== $compareResult) { return (('>' === $operator) ? 1 : -1) === $compareResult; } // Question we're answering here is "am I higher than $other?" return '>' === $operator ? $other->isInclusive() : !$other->isInclusive(); } public function __toString() { return sprintf( '%s [%s]', $this->getVersion(), $this->isInclusive() ? 'inclusive' : 'exclusive' ); } /** * @return self */ public static function zero() { return new Bound('0.0.0.0-dev', true); } /** * @return self */ public static function positiveInfinity() { return new Bound(PHP_INT_MAX.'.0.0.0', false); } }__halt_compiler();----SIGNATURE:----nDyCDemOQ6zlY/srF1rHoXB/v5+iXBTUspsoDBKoNYw3a3K3bBxRM6QNDyPj+3QgN2/HSbLnwNdkFbOST1INXslyuGmZzhwZ2piePFHgOBtfdiQcckqPo+qa0gz83foFvuYg9IsxFcAwYZS2XA8Ebi7I2/gUXCqBVSj4uVsX/wZq6anA2bUoQYV8sdTK8brLthmHRwSUI6hk10f5Js3Rjhpyi6FclwF8rQsozV4fXqKYGB1Wen6YAvATuh+F5qTIk+8k05WxpPnW+KSmoW/yB9P37l4xzy1GQyIDwu1yqCpyhKtH4ZvCH4DyYsPWmSgAkGcGb/OWUX6fSd/RoRbQSaeGnh23py0hy1AMS3JcxEemYBtC2o0hu2i6WVmiU2vkl7xD8G7TqdBxDoGMQyWFxfMnz8Ze2yRm4chZH7J+ndFlj22oi8OaXeAJmmIMx6xDCbWeV0HSFTFSafPf788JypVGk4B6KTdQERsuujApHH6GgNMhfTEkM3uHHTM0GXeFbY+cRQMbOegl8vgrFuBcKm//IYL4e7ZEj5jjPAJ01iOEtCKmevHejih9yHArXcJBRQw1vu6yVO6TcrIVBCAvpyq62DDBj6GKmLUNXca20UDAPWYvhK74Qljji8C5LtvPaXfotbU973Ml2Uq50TZb1tQCC063IhamI4DKx6Dh2hU=----ATTACHMENT:----NzgzMTQwNzYxMjQzMzcyOCAzMTQ3NTE1MTA0MjQwMDE0IDk3Nzg4NjM2MTczMjkwNzM=