<?php
namespace Engine\Mvc\Response; abstract class GeneralAbstract { public $headers = null; public $body = null; public $compressionMethod = 'gzip'; public function __construct($body=null, array $headersArr = []) { $this->initialize($body, $headersArr); } abstract protected function initialize($body, array $headersArr); public function appendToBody($body) { $this->body->append($body); } public function setBody($body) { $this->body->set($body); } public function getBody() { return $this->body->get(); } public function getHeadersFinal() { return $this->headers; } public function asString() { return $this->body->asString(); } } 