Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function expose(ModelInterface $item, ?array $expose = null): array |
||
23 | { |
||
24 | $expose ??= $this->getExpose(); |
||
|
|||
25 | |||
26 | if ($item instanceof \Zemit\Mvc\Model) { |
||
27 | return $item->expose($expose); |
||
28 | } |
||
29 | |||
30 | $exposeBuilder = Exposer::createBuilder($item, $expose); |
||
31 | return Exposer::expose($exposeBuilder); |
||
32 | } |
||
58 |