Skip to content

Instantly share code, notes, and snippets.

@eminetto
Created June 5, 2013 01:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eminetto/5710903 to your computer and use it in GitHub Desktop.
Save eminetto/5710903 to your computer and use it in GitHub Desktop.
<?php
namespace Api\PostProcessor;
/**
* Classe abstrata usada pelos pós-processadores
*
* @category Api
* @package PostProcessor
* @author Elton Minetto<eminetto@coderockr.com>
*/
abstract class AbstractPostProcessor
{
/**
* @var array|null
*/
protected $_vars = null;
/**
* @var null|\Zend\Http\Response
*/
protected $_response = null;
/**
* @return null|\Zend\Http\Response
*/
public function getResponse()
{
return $this->_response;
}
/*
* @param \Zend\Http\Response $response
*/
public function setResponse(\Zend\Http\Response $response)
{
$this->_response = $response;
}
/**
* @param $vars
*/
public function setVars($vars)
{
$this->_vars = $vars;
}
/**
* @abstract
*/
abstract public function process();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment