WarGot

Untitled

Apr 24th, 2012
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. <?php
  2. class plasticCard extends purse{
  3.     var $currency;
  4.     var $wantOfMoney;
  5.     function __autoload(){
  6.         $this->wantOfMoney = false;
  7.     }
  8.     function showMeTheMoney($userId, $summ, $currType = 'BY'){
  9.         $userId = intval($userId) ? intval($sum) : $error = true;
  10.         $sum = (intval($sum) && $sum > 0) ? intval($sum) : $error = true;
  11.         if ($error != true){
  12.             $this->updateBalance($userId, $sum, $currType);
  13.             $this->ownerIsHappy = true;
  14.         }
  15.     }
  16.     function wantMoreMoney($userId){
  17.         $solvency = $this->WarGotDoYouWork($userId);
  18.         if ($solvency == true){
  19.             $this->plasticCardType = 'credit';
  20.         }
  21.     }
  22. }
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment