Ejemplo n.º 1
0
 public function __set($name, $value)
 {
     $setter = 'set' . $name;
     if (method_exists($this->_mailer, $setter)) {
         return $this->_mailer->{$setter}($value);
     } else {
         if (method_exists($this->_mailer, $name)) {
             return $this->_mailer->{$name}($value);
         } else {
             if (property_exists($this->_mailer, $name)) {
                 return $this->_mailer->{$name} = $value;
             }
         }
     }
     return parent::__set($name, $value);
 }