/** * __construct * * entry point for this processor. * * @param Array $input * */ public function __construct($input) { parent::__construct(); $this->input = $input; $this->main(); }
protected function send(Output_Abstract $processor) { /* * Output */ $response = $this->getResponse(); /* * Each processor can have multiple headers that need to be set upon * output. This way we get all of them. */ foreach ($processor->getHeaders() as $header => $value) { $response->setHeader($header, $value); } // foreach($this->processor->getHeaders() as $header) $response->appendBody($processor->getPayload()); return; }
/** * __construct * * entry point for this processor. * * @param Array $input * */ public function __construct($payload) { parent::__construct(); $this->input = $payload; $this->main(); }