Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
3 / 3 |
CRAP | |
100.00% |
5 / 5 |
Framework | |
100.00% |
1 / 1 |
|
100.00% |
4 / 4 |
4 | |
100.00% |
5 / 5 |
__construct | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
processHttpSapiRequest | |
100.00% |
1 / 1 |
1 | |
100.00% |
2 / 2 |
|||
processHttpServerRequest | |
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
|||
buildBuilder | |
100.00% |
1 / 1 |
1 |
<?php | |
namespace PHPixie; | |
abstract class Framework | |
{ | |
protected $builder; | |
public function __construct() | |
{ | |
$this->builder = $this->buildBuilder(); | |
} | |
public function processHttpSapiRequest() | |
{ | |
$this->builder->http()->processSapiRequest(); | |
} | |
public function processHttpServerRequest($serverRequest) | |
{ | |
return $this->builder->http()->processServerRequest($serverRequest); | |
} | |
abstract protected function buildBuilder(); | |
} |