public function getCustomerByExternalUid($customerExternalUid)
    {
        $requestData = new Get\RequestData();
        $requestData->setCustomerExternalUid($customerExternalUid);

        $customers = $this->getCustomers($requestData)->getResponse()->getCustomers();

        return isset($customers[0]) ? $customers[0] : null;
    }
public function getCustomerByExternalUid($customerExternalUid)
    {
        $requestData = new Get\RequestData();
        $requestData->setCustomerExternalUid($customerExternalUid);

        $customers = $this->getCustomers($requestData)->getResponse()->getCustomers();

        return isset($customers[0]) ? $customers[0] : null;
    }
public function getCustomerByExternalUid ( $ customerExternalUid ) { $ requestData = new Get \ RequestData ( ) ; $ requestData -> setCustomerExternalUid ( $ customerExternalUid ) ; $ customers = $ this -> getCustomers ( $ requestData ) -> getResponse ( ) -> getCustomers ( ) ; return isset ( $ customers [ 0 ] ) ? $ customers [ 0 ] : null ; }
Get once customer by the external ID.

@param string $customerExternalUid The external customer ID.
@return Customer|null
Get once customer by the external ID .