1: <?php
2:
3: namespace PHPixie\Filesystem;
4:
5: class Builder
6: {
7: protected $locators;
8:
9: public function __construct()
10: {
11:
12: }
13:
14: public function root($directory)
15: {
16: return new Root($directory);
17: }
18:
19: public function locators()
20: {
21: if($this->locators === null) {
22: $this->locators = $this->buildLocators();
23: }
24:
25: return $this->locators;
26: }
27:
28: protected function buildLocators()
29: {
30: return new Locators($this);
31: }
32: }