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

Collection   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 34
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
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
}