From c1937e8a332c4d44dd05284e71697fe78528b77d Mon Sep 17 00:00:00 2001 From: PJ Dietz Date: Sat, 28 Jun 2014 16:24:16 -0400 Subject: [PATCH] Remove magic methods from Message --- src/pjdietz/WellRESTed/Message.php | 57 ------------------------------ 1 file changed, 57 deletions(-) diff --git a/src/pjdietz/WellRESTed/Message.php b/src/pjdietz/WellRESTed/Message.php index 4311afe..5e6dfc3 100644 --- a/src/pjdietz/WellRESTed/Message.php +++ b/src/pjdietz/WellRESTed/Message.php @@ -49,63 +49,6 @@ abstract class Message // ------------------------------------------------------------------------- // Accessors - /** - * Magic accessor method - * - * @param string $propertyName - * @return mixed - */ - public function __get($propertyName) - { - $method = 'get' . ucfirst($propertyName); - if (method_exists($this, $method)) { - return $this->{$method}(); - } - return null; - } - - /** - * Magic accessor method - * - * @param string $propertyName - * @param $value - */ - public function __set($propertyName, $value) - { - $method = 'set' . ucfirst($propertyName); - if (method_exists($this, $method)) { - $this->{$method}($value); - } - } - - /** - * Magic accessor method - * - * @param string $propertyName - * @return boolean - */ - public function __isset($propertyName) - { - $method = 'isset' . ucfirst($propertyName); - if (method_exists($this, $method)) { - return $this->{$method}(); - } - return false; - } - - /** - * Magic accessor method - * - * @param string $propertyName - */ - public function __unset($propertyName) - { - $method = 'unset' . ucfirst($propertyName); - if (method_exists($this, $method)) { - $this->{$method}(); - } - } - /** * Return the body payload of the instance. *