Skip to content
Snippets Groups Projects
Commit 975357b5 authored by Andy Summers's avatar Andy Summers
Browse files

Merge branch 'php7-interfacing' into 'master'

Add PHP7 type annotations to Interfacing classes

See merge request !75
parents 8abb1f85 9e7d2b79
No related branches found
No related tags found
1 merge request!75Add PHP7 type annotations to Interfacing classes
...@@ -30,7 +30,7 @@ class MockOrderInterfacingService implements OrderInterfacingService, MockServic ...@@ -30,7 +30,7 @@ class MockOrderInterfacingService implements OrderInterfacingService, MockServic
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
public function interfaceOrder($orderNumber) public function interfaceOrder($orderNumber): OrderServiceResponse
{ {
return $this->response; return $this->response;
} }
......
...@@ -13,9 +13,9 @@ interface OrderInterfacingService extends Service ...@@ -13,9 +13,9 @@ interface OrderInterfacingService extends Service
/** /**
* Commit and finalize ("interface") an order with CBS. * Commit and finalize ("interface") an order with CBS.
* @param string $orderNumber * @param float $orderNumber
* @return OrderServiceResponse * @return OrderServiceResponse
*/ */
public function interfaceOrder($orderNumber); public function interfaceOrder($orderNumber): OrderServiceResponse;
} }
\ No newline at end of file
...@@ -45,7 +45,10 @@ class SoapOrderInterfacingService implements OrderInterfacingService, SoapServic ...@@ -45,7 +45,10 @@ class SoapOrderInterfacingService implements OrderInterfacingService, SoapServic
} }
} }
public function interfaceOrder($orderNumber) /**
* {@inheritdoc}
*/
public function interfaceOrder($orderNumber): OrderServiceResponse
{ {
$response = $this->soapClient->INTERFACE_ORDER( $response = $this->soapClient->INTERFACE_ORDER(
new InputParameters($orderNumber, "MAGE$orderNumber", 'TBD') new InputParameters($orderNumber, "MAGE$orderNumber", 'TBD')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment