1 | <?php |
||
8 | class Uri |
||
9 | { |
||
10 | const BIP0021 = 0; |
||
11 | const BIP0072 = 1; |
||
12 | |||
13 | /** |
||
14 | * @var AddressInterface |
||
15 | */ |
||
16 | private $address; |
||
17 | |||
18 | /** |
||
19 | * @var null|int |
||
20 | */ |
||
21 | private $amount; |
||
22 | |||
23 | /** |
||
24 | * @var |
||
25 | */ |
||
26 | private $label; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $message; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $request; |
||
37 | |||
38 | /** |
||
39 | * @var int |
||
40 | */ |
||
41 | private $rule; |
||
42 | |||
43 | /** |
||
44 | * Uri constructor. |
||
45 | * @param AddressInterface|null $address |
||
46 | * @param int $convention |
||
47 | */ |
||
48 | 8 | public function __construct(AddressInterface $address = null, int $convention = self::BIP0021) |
|
61 | |||
62 | /** |
||
63 | * @param float $value |
||
64 | * @return $this |
||
65 | */ |
||
66 | 1 | public function setAmountBtc(float $value) |
|
71 | |||
72 | /** |
||
73 | * @param Amount $amount |
||
74 | * @param int $value |
||
75 | * @return $this |
||
76 | */ |
||
77 | 1 | public function setAmount(Amount $amount, int $value) |
|
82 | |||
83 | /** |
||
84 | * @param string $label |
||
85 | * @return $this |
||
86 | */ |
||
87 | 1 | public function setLabel(string $label) |
|
92 | |||
93 | /** |
||
94 | * @param string $message |
||
95 | * @return $this |
||
96 | */ |
||
97 | 1 | public function setMessage(string $message) |
|
102 | |||
103 | /** |
||
104 | * @param string $url |
||
105 | * @return $this |
||
106 | */ |
||
107 | 2 | public function setRequestUrl(string $url) |
|
112 | |||
113 | /** |
||
114 | * @param NetworkInterface|null $network |
||
115 | * @return string |
||
116 | */ |
||
117 | 7 | public function uri(NetworkInterface $network = null): string |
|
150 | } |
||
151 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..