Product::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 2
dl 0
loc 3
rs 10
1
<?php
2
3
namespace WagnerMontanini\DeOlhoNoImposto;
4
5
/**
6
 * Class Product
7
 * @package WagnerMontanini\DeOlhoNoImposto
8
 */
9
class Product extends DeOlhoNoImposto
10
{
11
    /**
12
     * Product constructor
13
     * @param string $versao
14
     * @param string $token
15
     */
16
    public function __construct(string $versao, string $token)
17
    {
18
        parent::__construct($versao, $token);
19
    }
20
21
    /**
22
     * @param array $fields
23
     * @return Product
24
     */
25
    public function product(array $fields): Product
26
    {
27
        $this->request(
28
            "GET",
29
            "/produtos",
30
            $fields
31
        );
32
33
        return $this;
34
    }
35
36
}