<?phpclass DataSnapshot{ private $_comment; protected function __construct($comment) { $this->_comment = $comment; } protected function getComment() { return $this->_comment; }}