Completed
Push — master ( b55932...7ec029 )
by Nicholas
04:51
created

USPSLookup::Pickup()   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 0
1
<?php
2
3
namespace Nickcheek\USPSLookup;
4
5
use Nickcheek\USPSLookup\Service\Price;
6
use Nickcheek\USPSLookup\Service\Pickup;
7
use Nickcheek\USPSLookup\Service\Address;
8
use Nickcheek\USPSLookup\Service\Tracking;
9
10
11
class USPSLookup
12
{
13
    protected static string $USPSuser;
0 ignored issues
show
Bug introduced by
This code did not parse for me. Apparently, there is an error somewhere around this line:

Syntax error, unexpected T_STRING, expecting T_FUNCTION or T_CONST
Loading history...
14
    protected static string $service = 'http://production.shippingapis.com/ShippingAPI.dll?API=';
15
16
    /**
17
     * USPSLookup constructor.
18
     * @param string self::$$USPSuser
19
     */
20
    public function __construct($USPSuser)
21
    {
22
        self::$USPSuser = $USPSuser;
23
    }
24
25
    /**
26
     * @return Address
27
     */
28
    public function Address(): object
29
    {
30
        return new Address(self::$USPSuser);
31
    }
32
33
    /**
34
     * @return Tracking
35
     */
36
    public function Tracking(): object
37
    {
38
        return new Tracking(self::$USPSuser);
39
    }
40
41
    /**
42
     * @return Price
43
     */
44
    public function Price(): object
45
    {
46
        return new Price(self::$USPSuser);
47
    }
48
49
    /**
50
     * @return Pickup
51
     */
52
    public function Pickup(): object
53
    {
54
        return new Pickup(self::$USPSuser);
55
    }
56
57
}
58