public function getCustomer($customerId)
    {
        $requestData = new Get\RequestData();
        $requestData->setCustomerId($customerId);

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

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

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

        return isset($customers[0]) ? $customers[0] : null;
    }
public function getCustomer ( $ customerId ) { $ requestData = new Get \ RequestData ( ) ; $ requestData -> setCustomerId ( $ customerId ) ; $ customers = $ this -> getCustomers ( $ requestData ) -> getResponse ( ) -> getCustomers ( ) ; return isset ( $ customers [ 0 ] ) ? $ customers [ 0 ] : null ; }
Get one customer by ID.

@param integer $customerId The customer ID.
@return Customer|null
Get one customer by ID .