1 | <?php |
||
17 | trait Fractal |
||
18 | { |
||
19 | /** |
||
20 | * @var \League\Fractal\Manager |
||
21 | */ |
||
22 | private $fractal; |
||
23 | |||
24 | /** |
||
25 | * @return \League\Fractal\Manager |
||
26 | */ |
||
27 | 19 | public function getFractal() |
|
36 | |||
37 | /** |
||
38 | * @param null $data |
||
39 | * @param \WSW\SiftScience\Transformers\AbstractTransformer $transformer |
||
40 | * |
||
41 | * @return \League\Fractal\Scope |
||
42 | */ |
||
43 | 16 | public function loadItem($data = null, AbstractTransformer $transformer = null) |
|
47 | |||
48 | /** |
||
49 | * @param null $data |
||
50 | * @param \WSW\SiftScience\Transformers\AbstractTransformer $transformer |
||
51 | * |
||
52 | * @return \League\Fractal\Scope |
||
53 | */ |
||
54 | 12 | public function loadCollection($data = null, AbstractTransformer $transformer = null) |
|
58 | } |
||
59 |