Example #1
0
 /**
  * {@inheritDoc}
  * @see \PhpObject\Core\INumber::greaterThanOrEquals($integer)
  */
 public function greaterThanOrEquals(INumber $integer) : IBoolean
 {
     // TODO does not work for big values : use bcmath
     return Boolean::fromPrimitive($this->getPrimitive() >= $integer->getPrimitive());
 }
Example #2
0
 /**
  * Gets whether this class is a parent of given argument class.
  * 
  * @param Class_ $class the class supposed to be a children.
  * @return IBoolean
  */
 public function isParentOf(Class_ $class)
 {
     return Boolean::fromPrimitive($class->_reflection->isSubclassOf($this->_reflection));
 }
Example #3
0
 /**
  * {@inheritDoc}
  * @see \PhpObject\Core\IBoolean::nand($boolean)
  */
 public function nand(IBoolean $boolean) : IBoolean
 {
     return Boolean::fromPrimitive(!($this->getPrimitive() && $boolean->getPrimitive()));
 }