Ejemplo n.º 1
0
 /**
  * Renders an unfolded line.
  *
  * @return string
  */
 public function toLine()
 {
     // Property-name
     $line = $this->getName();
     // Adding params
     if ($this->parameterBag->hasParams()) {
         $line .= ';' . $this->parameterBag->toString();
     }
     // Property value
     $line .= ':' . $this->value->getEscapedValue();
     return $line;
 }
Ejemplo n.º 2
0
 /**
  * Renders an unfolded line.
  *
  * @return string
  */
 public function toLine()
 {
     // Property-name
     $line = $this->getName();
     // Adding params
     //@todo added check for $this->parameterBag because doctrine/orm proxies won't execute constructor - ok?
     if ($this->parameterBag && $this->parameterBag->hasParams()) {
         $line .= ';' . $this->parameterBag->toString();
     }
     // Property value
     $line .= ':' . $this->value->getEscapedValue();
     return $line;
 }