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

ShipmentCompany   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 1
dl 0
loc 33
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getShipmentCompanies() 0 3 1
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