Code Coverage
 
Classes and Traits
Functions and Methods
Lines
Total
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
3 / 3
CRAP
100.00% covered (success)
100.00%
8 / 8
Processors
100.00% covered (success)
100.00%
1 / 1
100.00% covered (success)
100.00%
3 / 3
3
100.00% covered (success)
100.00%
8 / 8
 chain
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 checkIsProcessable
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
4 / 4
 catchException
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
3 / 3
<?php
namespace PHPixie;
class Processors
{
    public function chain($processors)
    {
        return new Processors\Processor\Chain($processors);
    }
    
    public function checkIsProcessable($processor, $processableProcessor, $notProcessableProcessor)
    {
        return new Processors\Processor\CheckIsProcessable(
            $processor,
            $processableProcessor,
            $notProcessableProcessor
        );
    }
    
    public function catchException($valueProcessor, $exceptionProcessor)
    {
        return new Processors\Processor\CatchException(
            $valueProcessor,
            $exceptionProcessor
        );
    }
}