Completed
Branch master (f97dd7)
by Nuno
04:04 queued 01:50
created

Bag::__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
namespace LaravelMeetups\Jobs\Catalog;
4
5
use \LaravelMeetups\Contracts\Jobs\Catalog\Bag as Contract;
6
use PHPHtmlParser\Dom;
7
8
class Bag implements Contract
9
{
10
    /**
11
     * @var Dom
12
     */
13
    private $dom;
14
15
    /**
16
     * @var array
17
     */
18
    private $rows;
19
20
    /**
21
     * {@inheritdoc}
22
     */
23
    public function __construct(Dom $dom, array $rows)
24
    {
25
        $this->dom = $dom;
26
        $this->rows = $rows;
27
    }
28
29
    /**
30
     * {@inheritdoc}
31
     */
32
    public function getDom()
33
    {
34
        return clone $this->dom;
35
    }
36
37
    /**
38
     * {@inheritdoc}
39
     */
40
    public function getRows()
41
    {
42
        return $this->rows;
43
    }
44
}