* @category Community Framework
*/
abstract class AbstractNamedFormElement extends AbstractFormElement {
+ /**
+ * element description
+ * @var string
+ */
+ protected $description = '';
+
/**
* element name
* @var string
*/
protected $value = '';
+ /**
+ * Sets element description.
+ *
+ * @param string $description
+ */
+ public function setDescription($description) {
+ $this->description = $description;
+ }
+
+ /**
+ * Returns element description.
+ *
+ * @return string
+ */
+ public function getDescription() {
+ return $this->description;
+ }
+
/**
* Sets element name.
*
$optionalPackage->setName('optionalPackages');
$optionalPackage->setLabel($package['packageName']);
$optionalPackage->setValue($package['package']);
+ $optionalPackage->setDescription($package['packageDescription']);
$container->appendChild($optionalPackage);
}