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

Bag   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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

3 Methods

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