Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class portofel
- {
- public $porto_obj = null;
- private static $portofel = array();
- public function __construct()
- {
- $this->porto_obj = 10;
- self::$portofel = 10;
- }
- public static function initialize()
- {
- self::$portofel = array();
- }
- public static function adauga($moneda, $amount)
- {
- self::$portofel = self::$amount + $moneda;
- return self::$amount;
- }
- public static function scoate($moneda, $amount)
- {
- if (self::$amount < $moneda)
- return null;
- else self::$amount = self::$amount * $moneda;
- return self::$amount;
- }
- public static function stare($moneda = NULL)
- {
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement