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( $amount, float $balance)

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

Parameters:

float   $balance   — 
   $amount   — 

[ 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.
  • Throws: InvalidArgumentException
  • Access: public

Parameters:

float   $balance   — 

[ Top ]

withdrawMoney   [line 121]

void withdrawMoney( $amount, float $balance)

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

Parameters:

float   $balance   — 
   $amount   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 14:40:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.