src/Service/Customer/CustomerService.php
public function getCustomers(Get\RequestData $requestData = null)
    {
        $request = new Get\Request($requestData);

        $apiResponse = $this->sendRequest($request, Get\ApiResponse::class);

        /** @var Get\Response $response */
        $response = $apiResponse->getResponse();
        foreach ($response->getCustomers() as $customer) {
            if ($customer->getBirthday() instanceof \DateTime) {
                $customer->getBirthday()->setTime(0, 0, 0);
            }
        }

        return $apiResponse;
    }
public function getCustomers(Get\RequestData $requestData = null)
    {
        $request = new Get\Request($requestData);

        $apiResponse = $this->sendRequest($request, Get\ApiResponse::class);

        /** @var Get\Response $response */
        $response = $apiResponse->getResponse();
        foreach ($response->getCustomers() as $customer) {
            if ($customer->getBirthday() instanceof \DateTime) {
                $customer->getBirthday()->setTime(0, 0, 0);
            }
        }

        return $apiResponse;
    }
public function getCustomers ( Get \ RequestData $ requestData = null ) { $ request = new Get \ Request ( $ requestData ) ; $ apiResponse = $ this -> sendRequest ( $ request , Get \ ApiResponse :: class ) ; /** @var Get\Response $response */ $ response = $ apiResponse -> getResponse ( ) ; foreach ( $ response -> getCustomers ( ) as $ customer ) { if ( $ customer -> getBirthday ( ) instanceof \ DateTime ) { $ customer -> getBirthday ( ) -> setTime ( 0 , 0 , 0 ) ; } } return $ apiResponse ; }
Get the customers.

@param Get\RequestData|null $requestData The request data.
@return Get\ApiResponse
Get the customers .