1: <?php
2:
3: namespace PHPixie\Processors\Processor\Dispatcher;
4:
5: abstract class Builder extends \PHPixie\Processors\Processor\Dispatcher
6: {
7: protected $processors = array();
8:
9: public function processor($name)
10: {
11: if(!array_key_exists($name, $this->processors)) {
12: $method = 'build'.ucfirst($name).'Processor';
13: if(!method_exists($this, $method)) {
14: return null;
15: }
16: $this->processors[$name] = $this->$method();
17: }
18:
19: return $this->processors[$name];
20: }
21: }