* @category Horde * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package ListHeaders */ /** * Object representation of a basic list header (RFC 2369) element. * * @author Michael Slusarz * @category Horde * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1 * @package ListHeaders * * @property string $comments Comments. * @property string $url URL. */ class Horde_ListHeaders_Base extends Horde_ListHeaders_Object { /** * Comments. * * @var array */ protected $_comments = array(); /** * URL. * * @var string. */ protected $_url; /** * Constructor. * * @param string $url URL. * @param array $comments Comments. */ public function __construct($url, array $comments = array()) { $this->_url = $url; $this->_comments = $comments; } /** */ public function __get($name) { switch ($name) { case 'comments': return $this->_comments; case 'url': return $this->_url; } } }