Added fluidity to setters ;-)

This commit is contained in:
Franck Allimant
2014-01-21 14:40:22 +01:00
parent 2effb52f2b
commit ef5f20ff09
2 changed files with 26 additions and 3 deletions

View File

@@ -61,6 +61,8 @@ class TaxEvent extends ActionEvent
public function setDescription($description) public function setDescription($description)
{ {
$this->description = $description; $this->description = $description;
return $this;
} }
public function getDescription() public function getDescription()
@@ -71,6 +73,8 @@ class TaxEvent extends ActionEvent
public function setId($id) public function setId($id)
{ {
$this->id = $id; $this->id = $id;
return $this;
} }
public function getId() public function getId()
@@ -81,6 +85,8 @@ class TaxEvent extends ActionEvent
public function setTitle($title) public function setTitle($title)
{ {
$this->title = $title; $this->title = $title;
return $this;
} }
public function getTitle() public function getTitle()
@@ -91,6 +97,8 @@ class TaxEvent extends ActionEvent
public function setLocale($locale) public function setLocale($locale)
{ {
$this->locale = $locale; $this->locale = $locale;
return $this;
} }
public function getLocale() public function getLocale()
@@ -101,6 +109,8 @@ class TaxEvent extends ActionEvent
public function setType($type) public function setType($type)
{ {
$this->type = $type; $this->type = $type;
return $this;
} }
public function getType() public function getType()
@@ -111,10 +121,12 @@ class TaxEvent extends ActionEvent
public function setRequirements($requirements) public function setRequirements($requirements)
{ {
$this->requirements = $requirements; $this->requirements = $requirements;
return $this;
} }
public function getRequirements() public function getRequirements()
{ {
return $this->requirements; return $this->requirements;
} }
} }

View File

@@ -61,6 +61,8 @@ class TaxRuleEvent extends ActionEvent
public function setDescription($description) public function setDescription($description)
{ {
$this->description = $description; $this->description = $description;
return $this;
} }
public function getDescription() public function getDescription()
@@ -71,6 +73,8 @@ class TaxRuleEvent extends ActionEvent
public function setId($id) public function setId($id)
{ {
$this->id = $id; $this->id = $id;
return $this;
} }
public function getId() public function getId()
@@ -81,6 +85,8 @@ class TaxRuleEvent extends ActionEvent
public function setTitle($title) public function setTitle($title)
{ {
$this->title = $title; $this->title = $title;
return $this;
} }
public function getTitle() public function getTitle()
@@ -91,6 +97,8 @@ class TaxRuleEvent extends ActionEvent
public function setLocale($locale) public function setLocale($locale)
{ {
$this->locale = $locale; $this->locale = $locale;
return $this;
} }
public function getLocale() public function getLocale()
@@ -101,6 +109,8 @@ class TaxRuleEvent extends ActionEvent
public function setCountryList($countryList) public function setCountryList($countryList)
{ {
$this->countryList = $countryList; $this->countryList = $countryList;
return $this;
} }
public function getCountryList() public function getCountryList()
@@ -111,11 +121,12 @@ class TaxRuleEvent extends ActionEvent
public function setTaxList($taxList) public function setTaxList($taxList)
{ {
$this->taxList = $taxList; $this->taxList = $taxList;
return $this;
} }
public function getTaxList() public function getTaxList()
{ {
return $this->taxList; return $this->taxList;
} }
}
}