@@ -78,9 +78,9 @@ public static function create(
7878
7979 public static function fromPunchOutOrderMessage (
8080 PunchOutOrderMessage $ punchOutOrderMessage ,
81- string $ currency = null ,
82- string $ orderId = null ,
83- DateTimeInterface $ orderDate = null ,
81+ ? string $ currency = null ,
82+ ? string $ orderId = null ,
83+ ? DateTimeInterface $ orderDate = null ,
8484 string $ language = 'en ' ,
8585 ): self {
8686 if (($ supplierOrderInfo = $ punchOutOrderMessage ->getPunchOutOrderMessageHeader ()->getSupplierOrderInfo ()) instanceof SupplierOrderInfo) {
@@ -126,13 +126,13 @@ public static function fromPunchOutOrderMessage(
126126
127127 public function billTo (
128128 string $ name ,
129- PostalAddress $ postalAddress = null ,
130- string $ addressId = null ,
131- string $ addressIdDomain = null ,
132- string $ email = null ,
133- Phone $ phone = null ,
134- string $ fax = null ,
135- string $ url = null ,
129+ ? PostalAddress $ postalAddress = null ,
130+ ? string $ addressId = null ,
131+ ? string $ addressIdDomain = null ,
132+ ? string $ email = null ,
133+ ? Phone $ phone = null ,
134+ ? string $ fax = null ,
135+ ? string $ url = null ,
136136 ): self {
137137 $ this ->billTo = new BillTo (
138138 new Address (
@@ -154,8 +154,8 @@ public function shipTo(
154154 string $ name ,
155155 PostalAddress $ postalAddress ,
156156 array $ carrierIdentifiers = [],
157- string $ carrierAccountNo = null ,
158- string $ carrierShippingMethod = null ,
157+ ? string $ carrierAccountNo = null ,
158+ ? string $ carrierShippingMethod = null ,
159159 ): self {
160160 $ transportInformation = null ;
161161 if (null !== $ carrierAccountNo || null != $ carrierShippingMethod ) {
@@ -263,7 +263,7 @@ public function addItem(
263263 return $ item ;
264264 }
265265
266- public function addComment (string $ value = null , string $ type = null , string $ lang = null , string $ attachmentUrl = null ): self
266+ public function addComment (? string $ value = null , ? string $ type = null , ? string $ lang = null , ? string $ attachmentUrl = null ): self
267267 {
268268 $ this ->comments [] = new Comment (
269269 $ value ,
0 commit comments