Completed
Push — master ( 39e729...a971d4 )
by Sergii
01:44
created

Collection::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/**
3
 * @author Donii Sergii <[email protected]>
4
 */
5
6
namespace sonrac\Arango;
7
8
use ArangoDBClient\Collection as ArangoCollection;
9
10
/**
11
 * Class Collection.
12
 *
13
 * @author  Donii Sergii <[email protected]>
14
 */
15
class Collection
16
{
17
    /**
18
     * Arango.DB Connection
19
     *
20
     * @var \sonrac\Arango\Connection
21
     *
22
     * @author Donii Sergii <[email protected]>
23
     */
24
    protected $connection;
25
26
    /**
27
     * Arango.DB collection object
28
     *
29
     * @var \ArangoDBClient\Collection
30
     *
31
     * @author Donii Sergii <[email protected]>
32
     */
33
    protected $collection;
34
35
    /**
36
     * Collection constructor.
37
     *
38
     * @param \sonrac\Arango\Connection  $connection Arango.DB connection
39
     * @param \ArangoDBClient\Collection $collection Arango.DB collection object
40
     *
41
     * @author Donii Sergii <[email protected]>
42
     */
43
    public function __construct(Connection $connection, ArangoCollection $collection)
44
    {
45
        $this->connection = $connection;
46
        $this->collection = $collection;
47
    }
48
}