Beispiel #1
0
 /**
  * Composes styled string
  *
  * @return string
  */
 public function compose()
 {
     $prefix = Code::makeStyle($this->fgColor, $this->bgColor, $this->attributes);
     $suffix = '';
     if (!empty($prefix)) {
         $suffix = Code::make(Code::STYLE_RESET);
     }
     return $prefix . $this->text . $suffix;
 }