commit f2dbcad896516534dec2b27018c2b9d4308f3010
parent 1dbad8824f88fb3ee6b12aae9e1faf66ec1fca8e
Author: Felicitus <felicitus@felicitus.org>
Date: Wed, 24 Jun 2015 20:25:42 +0200
Removed obsolete serialize/deserialize methods
Diffstat:
1 file changed, 0 insertions(+), 57 deletions(-)
diff --git a/src/PartKeepr/DistributorBundle/Entity/Distributor.php b/src/PartKeepr/DistributorBundle/Entity/Distributor.php
@@ -244,61 +244,4 @@ class Distributor extends BaseEntity
{
return $this->skuurl;
}
-
- /**
- * Returns the distributor in serialized form.
- *
- * @return array The serialized distributor
- */
- public function serialize()
- {
- return array(
- "id" => $this->getId(),
- "name" => $this->getName(),
- "url" => $this->getURL(),
- "address" => $this->getAddress(),
- "email" => $this->getEmail(),
- "comment" => $this->getComment(),
- "phone" => $this->getPhone(),
- "fax" => $this->getFax(),
- "skuurl" => $this->getSKUURL(),
- );
- }
-
- /**
- * Deserializes the distributor
- *
- * @param array $parameters The array with the parameters to set
- */
- public function deserialize(array $parameters)
- {
- foreach ($parameters as $key => $value) {
- switch ($key) {
- case "name":
- $this->setName($value);
- break;
- case "url":
- $this->setURL($value);
- break;
- case "comment":
- $this->setComment($value);
- break;
- case "fax":
- $this->setFax($value);
- break;
- case "phone":
- $this->setPhone($value);
- break;
- case "email":
- $this->setEmail($value);
- break;
- case "address":
- $this->setAddress($value);
- break;
- case "skuurl":
- $this->setSKUURL($value);
- break;
- }
- }
- }
}