Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
7 / 7
CRAP
100.00% covered (success)
100.00%
10 / 10
HTTPProcessors
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
7 / 7
7
100.00% covered (success)
100.00%
10 / 10
 __construct
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
2 / 2
 updateContext
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 buildRequest
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 parseBody
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 attributeRegistryDispatcher
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
 builder
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 buildBuilder
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
<?php
namespace PHPixie;
class HTTPProcessors
{
    protected $builder;
    
    public function __construct($http)
    {
        $this->builder = $this->buildBuilder($http);
    }
    
    public function updateContext($settableConextContainer)
    {
        return $this->builder->updateContextProcessor($settableConextContainer);
    }
    
    public function buildRequest()
    {
        return $this->builder->buildRequestProcessor();
    }
    
    public function parseBody()
    {
        return $this->builder->parseBodyProcessor();
    }
    
    public function attributeRegistryDispatcher($processorRegistry, $attributeName)
    {
        return $this->builder->attributeRegistryDispatcher(
            $processorRegistry,
            $attributeName
        );
    }
    
    public function builder()
    {
        return $this->builder;
    }
    
    protected function buildBuilder($http)
    {
        return new HTTPProcessors\Builder($http);
    }
}