1: <?php
2:
3: namespace PHPixie\ORM\Planners;
4:
5: class Planner
6: {
7: protected $strategies = array();
8:
9: protected function strategy($type)
10: {
11: if(!array_key_exists($type, $this->strategies)) {
12: $method = 'build'.ucfirst($type).'Strategy';
13: $this->strategies[$type] = $this->$method();
14: }
15:
16: return $this->strategies[$type];
17: }
18: }