コード例 #1
0
 /**
  * Callback for plain output
  *
  * @param   WorkflowState $content The content
  *
  * @return  void
  */
 public function asPlain($content)
 {
     $state = $this->getState($content);
     $this->renderer->write($state);
 }
コード例 #2
0
 /**
  * Write data to the stream.
  *
  * @param   string $string The string that is to be written.
  *
  * @return  integer  Returns the number of bytes written to the stream.
  * @throws  \RuntimeException on failure.
  */
 public function write($string)
 {
     return $this->renderer->write($string);
 }