/** * Magic setter. * * @param string $property * @param mixed $value * * @return AbstractMessage */ public function __set($property, $value) { if (property_exists($this, $property)) { $this->{$property} = $value; } else { parent::__set($property, $value); } return $this; }
/** * Constructor. * * @param array $attributes */ public function __construct(array $attributes) { parent::__construct($attributes); $this->with('spbill_create_ip', $_SERVER['SERVER_ADDR']); }
/** * Constructor. * * @param array $attributes */ public function __construct(array $attributes) { parent::__construct($attributes); $this->with('fee_type', 'CNY'); }
/** * Constructor. * * @param array $attributes */ public function __construct(array $attributes) { parent::__construct($attributes); $this->with('spbill_create_ip', get_client_ip()); }
/** * Constructor. * * @param array $attributes */ public function __construct(array $attributes) { parent::__construct($attributes); }