public function __construct(Customer $customer) { parent::__construct($customer); if ($level = $customer->level) { $this->beans = $level->beans_invite; } switch ($customer->type_id) { case 2: $this->name = 'volunteer_invite'; break; case 3: $this->name = 'nurse_invite'; break; case 4: $this->name = 'doctor_invite'; break; default: $this->name = 'invite'; break; } }
public function __construct(Customer $customer, $original_cash) { parent::__construct($customer); $this->beans = $original_cash * 100 * 0.02; }
public function __construct(Customer $customer, $cash_paid_without_post_fee, $beans_paid) { parent::__construct($customer); $this->beans = 0 - $beans_paid; $this->cash_paid_without_post_fee = $cash_paid_without_post_fee; }
public function __construct(Customer $customer) { parent::__construct($customer); }
public function __construct(Customer $customer, $beans) { parent::__construct($customer); $this->beans = 0 - abs($beans); }