| @@ 63-70 (lines=8) @@ | ||
| 60 | * @param AccessorInterface $accessor |
|
| 61 | * @param EventDispatcherInterface $dispatcher |
|
| 62 | */ |
|
| 63 | public function __construct(Connection $connection, ModelInterface $model, RelationFactoryInterface $factory, AccessorInterface $accessor, EventDispatcherInterface $dispatcher) |
|
| 64 | { |
|
| 65 | $this->connection = $connection; |
|
| 66 | $this->model = $model; |
|
| 67 | $this->factory = $factory; |
|
| 68 | $this->accessor = $accessor; |
|
| 69 | $this->dispatcher = $dispatcher; |
|
| 70 | } |
|
| 71 | ||
| 72 | /** |
|
| 73 | * Returns var type |
|
| @@ 66-73 (lines=8) @@ | ||
| 63 | * @param ModelBag $models |
|
| 64 | * @param EventDispatcherInterface $dispatcher |
|
| 65 | */ |
|
| 66 | public function __construct(Connection $connection, ModelBag $models, EventDispatcherInterface $dispatcher) |
|
| 67 | { |
|
| 68 | $this->connection = $connection; |
|
| 69 | $this->models = $models; |
|
| 70 | $this->factory = new RelationFactory($this, $models); |
|
| 71 | $this->accessor = new Accessor(); |
|
| 72 | $this->dispatcher = $dispatcher; |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * Returns connection |
|