. */ /** * Description is used to provide a project-wide description element * (that is, a description that applies to a buildfile as a whole). * If present, the <description> element is printed out before the * target descriptions. * * Description has no attributes, only text. There can only be one * project description per project. A second description element will * overwrite the first. * * @author Hans Lellelid (Phing) * @author Craeg Strong (Ant) * @package phing.types */ class Description extends DataType { /** * Adds descriptive text to the project. * * @return void */ public function addText($text) { $currentDescription = $this->project->getDescription(); if ($currentDescription === null) { $this->project->setDescription($text); } else { $this->project->setDescription($currentDescription . $text); } } }