Exemplo n.º 1
0
 /**
  * Dumps a background.
  *
  * @param BackgroundNode $background Background instance
  *
  * @return string
  */
 public function dumpBackground(BackgroundNode $background)
 {
     $content = $this->dumpKeyword($this->keywords->getBackgroundKeywords(), $background->getTitle());
     foreach ($background->getSteps() as $step) {
         $content .= PHP_EOL . $this->dumpIndent(1) . $this->dumpStep($step);
     }
     return $content;
 }
 /**
  * @param BackgroundNode $background
  *
  * @return string
  */
 private function getBackgroundShortDescription(BackgroundNode $background)
 {
     return trim(sprintf('%s: %s', trim($background->getKeyword()), trim($background->getTitle())));
 }