Class Integer

Description

A simple Integer data type.

Located in /harmoni/core/Primitives/Numbers/Integer.class.php (line 25)

SObject
   |
   --Magnitude
      |
      --Number
         |
         --Integer
Direct descendents
Class Description
StorableInteger This is the StorablePrimitive equivalent of Integer.
ByteSize A representation of a Byte size. Provides easy conversion between B, KB, MB, etc as well as a pretty string reprentation
Method Summary
object Double fromString (string $string, [mixed $class = 'Integer'])
object Integer withValue (mixed $value, [optional $class = 'Integer'])
object Integer zero ([optional $class = 'Integer'])
void _setValue (mixed $value)
Methods
dividedBy (line 125)

Answer the result of dividing the receiver and aNumber.

  • since: 7/14/05
  • access: public
object Number dividedBy (object Number $aNumber)

Redefinition of:
Number::dividedBy()
Answer the result of dividing the receiver and aNumber.
fromString (line 55)

Answer a new object with the value specified

  • since: 3/14/06
  • access: public
object Double fromString (string $string, [mixed $class = 'Integer'])
  • string $string: a string representation of the object

Redefinition of:
Number::fromString()
Answer a new object with the value specified

Redefined in descendants as:
multipliedBy (line 105)

Answer the result of multiplying the receiver and aNumber.

  • since: 7/14/05
  • access: public
object Number multipliedBy (object Number $aNumber)

Redefinition of:
Number::multipliedBy()
Answer the result of multiplying the receiver and aNumber.
plus (line 85)

Answer the sum of the receiver and aNumber.

  • since: 7/14/05
  • access: public
object Number plus (object Number $aNumber)

Redefinition of:
Number::plus()
Answer the sum of the receiver and aNumber.
withValue (line 43)

Answer a new object with the value specified

  • since: 7/14/05
  • access: public
object Integer withValue (mixed $value, [optional $class = 'Integer'])
  • mixed $value
  • optional $class: string $class The class to instantiate. Do NOT use outside of this package.

Redefinition of:
Number::withValue()
Answer a new object with the value specified

Redefined in descendants as:
zero (line 69)

Answer a new object with the value zero

  • since: 7/14/05
  • access: public
object Integer zero ([optional $class = 'Integer'])
  • optional $class: string $class The class to instantiate. Do NOT use outside of this package.

Redefinition of:
Number::zero()
Answer a new object with the value zero

Redefined in descendants as:
_setValue (line 142)

Set the internal value to a PHP primitive.

  • since: 7/14/05
  • access: private
void _setValue (mixed $value)
  • mixed $value

Redefinition of:
Number::_setValue()
Set the internal value to a PHP primitive.

Redefined in descendants as:

Inherited Methods

Inherited From Number

Number::abs()
Number::asDouble()
Number::asFloat()
Number::asInteger()
Number::asNumber()
Number::ceiling()
Number::dividedBy()
Number::floor()
Number::fromString()
Number::isEqualTo()
Number::isLessThan()
Number::minus()
Number::modIntegerQuotient()
Number::modulo()
Number::multipliedBy()
Number::negated()
Number::plus()
Number::printableString()
Number::reciprical()
Number::remainder()
Number::remIntegerQuotient()
Number::truncated()
Number::value()
Number::withValue()
Number::zero()
Number::_setValue()

Inherited From Magnitude

Magnitude::isBetween()
Magnitude::isEqualTo()
Magnitude::isGreaterThan()
Magnitude::isGreaterThanOrEqualTo()
Magnitude::isLessThan()
Magnitude::isLessThanOrEqualTo()
Magnitude::max()
Magnitude::min()

Inherited From SObject

SObject::asA()
SObject::asString()
SObject::copy()
SObject::copySameFrom()
SObject::copyTwoLevel()
SObject::deepCopy()
SObject::isEqual()
SObject::isEqualTo()
SObject::isNotEqualTo()
SObject::isNotReferenceTo()
SObject::isReferenceTo()
SObject::newFrom()
SObject::postCopy()
SObject::printableString()
SObject::shallowCopy()
SObject::_deepCopyArray()

Documentation generated on Wed, 19 Sep 2007 10:24:40 -0400 by phpDocumentor 1.3.0RC3