Permalink
Browse files

make details from partner fluent

  • Loading branch information...
cordoval authored and iampersistent committed Jan 24, 2013
1 parent b0ccb03 commit d27094fb6524812f0c9f66e2261421f5051a44b3
@@ -33,6 +33,8 @@ public function getName()
public function setName($name)
{
$this->name = $name;
+
+ return $this;
}
/**
@@ -49,6 +51,8 @@ public function getCategory()
public function setCategory($category)
{
$this->category = $category;
+
+ return $this;
}
/**
@@ -65,5 +69,7 @@ public function getEmployees()
public function setEmployees($employees)
{
$this->employees = $employees;
+
+ return $this;
}
}
@@ -13,18 +13,20 @@
* Set the organisation name
*
* @param string $name
+ * @return \Vespolina\Entity\Partner\OrganisationDetailsInterface
*/
function setName($name);
/**
- * Returns the organistion name
+ * Returns the organisation name
* @return string
*/
function getName();
/**
* Set the category (e.g. Education, Government, Insurance etc)
* @param string $category
+ * @return \Vespolina\Entity\Partner\OrganisationDetailsInterface
*/
function setCategory($category);
@@ -37,6 +39,7 @@ function getCategory();
/**
* Set the number employees (e.g. 25-50)
* @param string $employees
+ * @return \Vespolina\Entity\Partner\OrganisationDetailsInterface
*/
function setEmployees($employees);
@@ -19,6 +19,7 @@
* Sets the partnerId
*
* @param string $partnerId
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function setPartnerId($partnerId);
@@ -31,7 +32,8 @@ function getPartnerId();
/**
* Date since when this partner joined
- * @param DateTime $partnerSince
+ * @param \DateTime $partnerSince
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function setPartnerSince(\DateTime $partnerSince);
@@ -50,20 +52,23 @@ function getRoles();
* Adds a role to the current Partner
*
* @param string $role
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function addRole($role);
/**
* Sets the roles of the partner
*
* @param array $roles
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function setRoles($roles);
/**
* Sets the name of the partner
*
- * @param string $ame
+ * @param string $name
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function setName($name);
@@ -77,6 +82,7 @@ function getName();
/**
* Sets the partners default currency (ISO-4217)
* @param string $currency
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function setCurrency($currency);
@@ -91,6 +97,7 @@ function getCurrency();
* Sets the partners default language
*
* @param string $language - IETF tag
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function setLanguage($language);
@@ -105,6 +112,7 @@ function getLanguage();
* Sets the default payment terms for customer
*
* @param string $paymentTerms
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function setPaymentTerms($paymentTerms);
@@ -117,6 +125,7 @@ function getPaymentTerms();
* Sets the partners type
*
* @param string $type
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function setType($type);
@@ -131,13 +140,15 @@ function getType();
* Sets the partners addresses
*
* @param \Vespolina\Entity\Partner\Address[] $addresses
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function setAddresses($addresses);
/**
* Adds a partners address
*
* @param \Vespolina\Entity\Partner\Address $address
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function addAddress($address);
@@ -152,6 +163,7 @@ function getAddresses();
* Sets the partners primary contact
*
* @param \Vespolina\Entity\Partner\Contact $contact
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function setPrimaryContact(Contact $contact);
@@ -166,27 +178,29 @@ function getPrimaryContact();
* Sets the personal details for this partner
*
* @param $personalDetails
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function setPersonalDetails($personalDetails);
/**
* Personal details of partner (used for type individual)
*
- * @return mixed
+ * @return \Vespolina\Entity\Partner\PersonalDetailsInterface
*/
function getPersonalDetails();
/**
* Sets the organistaion details
*
* @param $organisationDetails
+ * @return \Vespolina\Entity\Partner\PartnerInterface
*/
function setOrganisationDetails($organisationDetails);
/**
* The organistaion details for this partner (used for type organisation)
*
- * @return mixed
+ * @return \Vespolina\Entity\Partner\OrganisationDetailsInterface
*/
function getOrganisationDetails();
}
@@ -35,6 +35,8 @@ public function getInitials()
public function setInitials($initials)
{
$this->initials = $initials;
+
+ return $this;
}
/**
@@ -51,6 +53,8 @@ public function getFirstname()
public function setFirstname($firstname)
{
$this->firstname = $firstname;
+
+ return $this;
}
/**
@@ -67,6 +71,8 @@ public function getPrefix()
public function setPrefix($prefix)
{
$this->prefix = $prefix;
+
+ return $this;
}
/**
@@ -83,6 +89,8 @@ public function getLastname()
public function setLastname($lastname)
{
$this->lastname = $lastname;
+
+ return $this;
}
/**
@@ -99,5 +107,7 @@ public function getNationalIdentificationNumber()
public function setNationalIdentificationNumber($nationalIdentificationNumber)
{
$this->nationalIdentificationNumber = $nationalIdentificationNumber;
+
+ return $this;
}
}
@@ -12,6 +12,7 @@
/**
* Set initials of customer
* @param string $initials
+ * @return \Vespolina\Entity\Partner\PersonalDetailsInterface
*/
function setInitials($initials);
@@ -24,6 +25,7 @@ function getInitials();
/**
* Set firstname of customer
* @param string $firstname
+ * @return \Vespolina\Entity\Partner\PersonalDetailsInterface
*/
function setFirstname($firstname);
@@ -36,6 +38,7 @@ function getFirstname();
/**
* Set prefix of customer
* @param string $prefix
+ * @return \Vespolina\Entity\Partner\PersonalDetailsInterface
*/
function setPrefix($prefix);
@@ -48,6 +51,7 @@ function getPrefix();
/**
* Set lastname of customer
* @param string $lastname
+ * @return \Vespolina\Entity\Partner\PersonalDetailsInterface
*/
function setLastname($lastname);
@@ -60,6 +64,7 @@ function getLastname();
/**
* Set national identification number
* @param string $nationalIdentificationNumber
+ * @return \Vespolina\Entity\Partner\PersonalDetailsInterface
*/
function setNationalIdentificationNumber($nationalIdentificationNumber);

0 comments on commit d27094f

Please sign in to comment.