Beispiel #1
0
 public function __toString()
 {
     $sResult = "@{$this->sType} {$this->sArgs}{";
     $sResult .= parent::__toString();
     $sResult .= '}';
     return $sResult;
 }
Beispiel #2
0
 public function render(\Sabberworm\CSS\OutputFormat $oOutputFormat)
 {
     $sArgs = $this->sArgs;
     if ($sArgs) {
         $sArgs = ' ' . $sArgs;
     }
     $sResult = "@{$this->sType}{$sArgs}{$oOutputFormat->spaceBeforeOpeningBrace()}{";
     $sResult .= parent::render($oOutputFormat);
     $sResult .= '}';
     return $sResult;
 }