1 | <?php |
||
14 | final class Dependency |
||
15 | { |
||
16 | /** |
||
17 | * @var |
||
18 | */ |
||
19 | private $relation; |
||
20 | |||
21 | /** |
||
22 | * @var array |
||
23 | */ |
||
24 | private $options; |
||
25 | |||
26 | /** |
||
27 | * Constructing. |
||
28 | * |
||
29 | * @param string $relation |
||
30 | * @param array $options |
||
31 | */ |
||
32 | public function __construct($relation, array $options = []) |
||
37 | |||
38 | /** |
||
39 | * Get relation to be loaded |
||
40 | * |
||
41 | * @return mixed |
||
42 | */ |
||
43 | public function getRelation() |
||
47 | |||
48 | /** |
||
49 | * Get options for pre-loaded relation |
||
50 | * |
||
51 | * @return array |
||
52 | */ |
||
53 | public function getOptions() |
||
57 | } |