| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 17 | public function registerBasicProperties($data, $locale, &$headers, $formatters) { |
||
| 18 | $formatter = new Hook\Formatter(); |
||
| 19 | $formatter->register(new Formatter\Number($locale)); |
||
| 20 | $formatter->register(new Formatter\Date($locale)); |
||
| 21 | $formatter->register(new Formatter\StringFormatter()); |
||
| 22 | |||
| 23 | foreach ($formatters as $format) $formatter->register($format); |
||
| 24 | |||
| 25 | $this->builder->registerProperty('content', new Property\Content($data, $headers, $formatter)); |
||
| 26 | $this->builder->registerProperty('repeat', new Property\Repeat($data)); |
||
| 27 | $this->builder->registerProperty('display', new Property\Display); |
||
| 28 | $this->builder->registerProperty('bind', new Property\Bind($data)); |
||
| 29 | } |
||
| 30 | } |