Diglin\Swisspost\StructType\Recipient::__construct
Constructor method for Recipient
Signature
public function __construct([string
$zIP = NULL,
[string
$postIdent = NULL,
[string
$title = NULL,
[bool
$personallyAddressed = NULL,
[string
$name1 = NULL,
[string
$firstName = NULL,
[string
$name2 = NULL,
[string
$name3 = NULL,
[string
$addressSuffix = NULL,
[string
$street = NULL,
[string
$houseNo = NULL,
[string
$pOBox = NULL,
[string
$floorNo = NULL,
[int
$mailboxNo = NULL,
[string
$city = NULL,
[string
$country = NULL,
[int
$hauskey = NULL,
[string
$phone = NULL,
[string
$mobile = NULL,
[string
$eMail = NULL,
[LabelAddress
$labelAddress = NULL]]]]]]]]]]]]]]]]]]]]] )
Parameters
$zIP— string$postIdent— string$title— string$personallyAddressed— object
$name1— string$firstName— string$name2— string$name3— string$addressSuffix— string$street— string$houseNo— string$pOBox— string$floorNo— string$mailboxNo— int$city— string$country— string$hauskey— int$phone— string$mobile— string$eMail— string$labelAddress— \Diglin\Swisspost\StructType\LabelAddress
Violations
PHPMessDetector
| Line | Rule | Message |
|---|---|---|
| 260 - 284 | ExcessiveParameterList | The method __construct has 21 parameters. Consider reducing the number of parameters to less than 10. |