/** * {@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()); }
/** * 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)); }
/** * {@inheritDoc} * @see \PhpObject\Core\IBoolean::nand($boolean) */ public function nand(IBoolean $boolean) : IBoolean { return Boolean::fromPrimitive(!($this->getPrimitive() && $boolean->getPrimitive())); }