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

View File

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