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:----Xi7dEPJUtPIOmy4wip0Eqhwa1giC1VCJ7445yiIAhHXnUjeumvvPChM1zcfEC46k+yfaYp8dK0bQucnwNDawgDZ7gcjEH1ElSGswKn+aii96AGChmSm+Tqld24q8SoDqTT6EAp1xPAuf+IgeYAUdvc+lOP81+UNMLXxOvAhV6kKjL3EoAxE5gHDy9tEgzzhr0PLqQsoMsEix6i+F5mJ0S9Q6Unoc97bHBaZfquKfyoFtpHH5gj6K0FDeTBLHPFK4wErSkAyTHoBk3JOYhJ6kK/mqklfevwDHBCEan2CKdc5Rn5A33eA2t1Tw0AXqyhN+cytHLHvQ83o554SIP7Oji1CAexdxwG7sXsED8/3LEllsmKSvFq1tPp00Ovw+YsATBhhPpAqdQSNOTScwjKC9fuNVM2y0awvUwYt0+sNsgKjx0Npx53qFf+rliOpwCUs2XQWNtrw4QidpFIh8P0yM47Uui14SuY3mkUxzMiwd3Yl5/VxBogDu62iPZ82ExAbWefDCeVL0m0dtTjYtHPQ1vM6fthnpILCmMuHIHm/YELywDs3yQ/2Q0mBQoXb3ZxUlnaJpw+rFvLH4rcRTwHeCV7ibJoYZNN2eeQa4gRDPraRA4BtGP5N2bnwLD9BKjfndCY+cTSyPjZW8cGvDijlyQBD+gGJ9RLdu/ydCPVxb5nU=----ATTACHMENT:----NTM0ODg5NzI2MDEzMTU1NSAxMDA5NjY2MzIwNjM5MzI0IDkwNDA5MjM3MzYwMzc4MDg=