Completed
Push — master ( adc137...661e1f )
by Onur
55s
created

ShipmentCompany::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
4
namespace Onurkacmaz\LaravelN11\Models;
5
6
use Onurkacmaz\LaravelN11\Exceptions\N11Exception;
7
use Onurkacmaz\LaravelN11\Service;
8
use SoapClient;
9
10
class ShipmentCompany extends Service
11
{
12
13
    /**
14
     * @var SoapClient|null
15
     */
16
    private $_client;
17
18
    /**
19
     * @var string
20
     */
21
    private $endPoint = "/ShipmentCompanyService.wsdl";
22
23
    /**
24
     * Shipment Company Service constructor
25
     * @throws N11Exception|\SoapFault
26
     */
27
    public function __construct()
28
    {
29
        parent::__construct();
30
        $this->_client = $this->setEndPoint($this->endPoint);
31
    }
32
33
    /**
34
     * @return mixed
35
     * @description Sistemde tanımlı olan tüm kargo şirketlerini listeler.
36
     * Genel kullanıma açık bir servis olduğu için servisin kullanımı sırasında herhangi bir güvenlik kontrolü yapılmamaktadır.
37
     */
38
    public function getShipmentCompanies() {
39
        return $this->_client->GetShipmentCompanies();
40
    }
41
42
}
43