| Total Complexity | 4 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 62.5% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class ObjectToTabellaExtension extends \Twig_Extension |
||
| 8 | { |
||
| 9 | 13 | ||
| 10 | protected $fifreetableprefix; |
||
| 11 | 13 | ||
| 12 | 13 | public function __construct($fifreetableprefix) |
|
| 13 | { |
||
| 14 | $this->fifreetableprefix = $fifreetableprefix; |
||
| 15 | } |
||
| 16 | |||
| 17 | public function getFunctions() |
||
| 22 | ); |
||
| 23 | 6 | } |
|
| 24 | |||
| 25 | 6 | public function object2View($object, $type = null) |
|
| 26 | 6 | { |
|
| 27 | $dfr = new DoctrineFieldReader($object, $this->fifreetableprefix); |
||
| 28 | return $dfr->object2View($object, $type); |
||
| 29 | } |
||
| 30 | |||
| 31 | 6 | public function field2Object($fieldtoobj, $object) |
|
| 35 | } |
||
| 36 | } |
||
| 37 |