Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class plasticCard extends purse{
- var $currency;
- var $wantOfMoney;
- function __autoload(){
- $this->wantOfMoney = false;
- }
- function showMeTheMoney($userId, $summ, $currType = 'BY'){
- $userId = intval($userId) ? intval($sum) : $error = true;
- $sum = (intval($sum) && $sum > 0) ? intval($sum) : $error = true;
- if ($error != true){
- $this->updateBalance($userId, $sum, $currType);
- $this->ownerIsHappy = true;
- }
- }
- function wantMoreMoney($userId){
- $solvency = $this->WarGotDoYouWork($userId);
- if ($solvency == true){
- $this->plasticCardType = 'credit';
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment