alloow possibility to specify a ref for a customer

This commit is contained in:
Manuel Raynaud
2014-01-17 11:15:55 +01:00
parent c25fdd7e42
commit 4e1521775f
6 changed files with 101 additions and 10 deletions

View File

@@ -51,6 +51,7 @@ class CustomerCreateOrUpdateEvent extends CustomerEvent
protected $sponsor;
protected $discount;
protected $company;
protected $ref;
/**
* @param int $title the title customer id
@@ -71,8 +72,9 @@ class CustomerCreateOrUpdateEvent extends CustomerEvent
* @param int $sponsor customer's id sponsor
* @param float $discount
* @param string $company
* @param string $ref
*/
public function __construct($title, $firstname, $lastname, $address1, $address2, $address3, $phone, $cellphone, $zipcode, $city, $country, $email, $password, $lang, $reseller, $sponsor, $discount, $company)
public function __construct($title, $firstname, $lastname, $address1, $address2, $address3, $phone, $cellphone, $zipcode, $city, $country, $email, $password, $lang, $reseller, $sponsor, $discount, $company, $ref)
{
$this->address1 = $address1;
$this->address2 = $address2;
@@ -92,6 +94,7 @@ class CustomerCreateOrUpdateEvent extends CustomerEvent
$this->sponsor = $sponsor;
$this->discount = $discount;
$this->company = $company;
$this->ref = $ref;
}
/**
* @return mixed
@@ -236,4 +239,14 @@ class CustomerCreateOrUpdateEvent extends CustomerEvent
{
return $this->sponsor;
}
/**
* @return string
*/
public function getRef()
{
return $this->ref;
}
}