Remove magic methods from Message

This commit is contained in:
PJ Dietz 2014-06-28 16:24:16 -04:00
parent 566384f1e4
commit c1937e8a33
1 changed files with 0 additions and 57 deletions

View File

@ -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.
*