Completed
Push — master ( e10af0...723f44 )
by Marcus Vinícius
12s queued 10s
created

Dealer::negotiate()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace MarcusCampos\Dealer;
4
5
use MarcusCampos\Dealer\Negotiation;
6
use Illuminate\Database\Eloquent\Collection;
7
8
class Dealer
9
{
10
    /**
11
     * @var Negotiation
12
     */
13
    private $negotiation;
14
    
15
    /**
16
     * Constructor
17
     */
18
    public function __construct()
19
    {
20
        $this->negotiation = new Negotiation();
21
    }
22
23
    /**
24
     * Negotiator
25
     *
26
     * @param string $query
27
     * @return Collection
28
     */
29
    public function negotiate(string $query)
30
    {
31
        return $this->negotiation->negotiate($query);
32
    }
33
}
34