Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * Constructor.
  *
  * @param array $attributes
  */
 public function __construct(array $attributes)
 {
     parent::__construct($attributes);
     $this->with('spbill_create_ip', $_SERVER['SERVER_ADDR']);
 }
Example #3
0
 /**
  * Constructor.
  *
  * @param array $attributes
  */
 public function __construct(array $attributes)
 {
     parent::__construct($attributes);
     $this->with('fee_type', 'CNY');
 }
Example #4
0
 /**
  * Constructor.
  *
  * @param array $attributes
  */
 public function __construct(array $attributes)
 {
     parent::__construct($attributes);
     $this->with('spbill_create_ip', get_client_ip());
 }
Example #5
0
 /**
  * Constructor.
  *
  * @param array $attributes
  */
 public function __construct(array $attributes)
 {
     parent::__construct($attributes);
 }