예제 #1
0
 public function __toString()
 {
     $sResult = "@{$this->sType} {$this->sArgs}{";
     $sResult .= parent::__toString();
     $sResult .= '}';
     return $sResult;
 }
예제 #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;
 }