Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. <?php
  2. class portofel
  3. {
  4. public $porto_obj = null;
  5. private static $portofel = array();
  6. public function __construct()
  7. {
  8. $this->porto_obj = 10;
  9. self::$portofel = 10;
  10. }
  11.  
  12. public static function initialize()
  13. {
  14. self::$portofel = array();
  15. }
  16.  
  17. public static function adauga($moneda, $amount)
  18. {
  19. self::$portofel = self::$amount + $moneda;
  20. return self::$amount;
  21. }
  22.  
  23. public static function scoate($moneda, $amount)
  24. {
  25. if (self::$amount < $moneda)
  26. return null;
  27. else self::$amount = self::$amount * $moneda;
  28. return self::$amount;
  29. }
  30.  
  31. public static function stare($moneda = NULL)
  32. {
  33. }
  34. }
  35.  
  36. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement