PHPUnit2
[ class tree: PHPUnit2 ] [ index: PHPUnit2 ] [ all elements ]

Class: BankAccount

Source Location: /PHPUnit2-3.0.0alpha11/Samples/BankAccount/BankAccount.php

Class Overview


A Bank Account.


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2002-2006 Sebastian Bergmann <sb@sebastian-bergmann.de>

Methods


Inherited Variables

Inherited Methods


Class Details

[line 61]
A Bank Account.


[ Top ]


Method Detail

depositMoney   [line 105]

void depositMoney( mixed $amount, float $balance)

Deposits an amount of money to the bank account.
  • Access: public
  • Throws: InvalidArgumentException

Parameters:

float   $balance     

[ Top ]

getBalance   [line 77]

float getBalance( )

Returns the bank account's balance.
  • Access: public

[ Top ]

setBalance   [line 89]

void setBalance( float $balance)

Sets the bank account's balance.
  • Access: public
  • Throws: InvalidArgumentException

Parameters:

float   $balance     

[ Top ]

withdrawMoney   [line 121]

void withdrawMoney( mixed $amount, float $balance)

Withdraws an amount of money from the bank account.
  • Access: public
  • Throws: InvalidArgumentException

Parameters:

float   $balance     

[ Top ]


Documentation generated on Tue, 12 Sep 2006 09:36:47 -0400 by phpDocumentor 1.2.3. PEAR Logo Copyright © PHP Group 2004.