private function setHolderPhone()
    {
        $addressData = ($this->getBillingAddress())
        ? $this->getBillingAddress()
        : $this->_order->getShippingAddress();

        if (! empty($addressData['telephone'])) {
            $phone = \UOL\PagSeguro\Helper\Data::formatPhone($addressData['telephone']);
            $this->_paymentRequest->setHolder()->setPhone()->withParameters(
                $phone['areaCode'],
                $phone['number']
            );
        }
    }
private function setHolderPhone()
    {
        $addressData = ($this->getBillingAddress())
        ? $this->getBillingAddress()
        : $this->_order->getShippingAddress();

        if (! empty($addressData['telephone'])) {
            $phone = \UOL\PagSeguro\Helper\Data::formatPhone($addressData['telephone']);
            $this->_paymentRequest->setHolder()->setPhone()->withParameters(
                $phone['areaCode'],
                $phone['number']
            );
        }
    }
private function setHolderPhone ( ) { $ addressData = ( $ this -> getBillingAddress ( ) ) ? $ this -> getBillingAddress ( ) : $ this -> _order -> getShippingAddress ( ) ; if ( ! empty ( $ addressData [ 'telephone' ] ) ) { $ phone = \ UOL \ PagSeguro \ Helper \ Data :: formatPhone ( $ addressData [ 'telephone' ] ) ; $ this -> _paymentRequest -> setHolder ( ) -> setPhone ( ) -> withParameters ( $ phone [ 'areaCode' ] , $ phone [ 'number' ] ) ; } }
Set the holder phone
@return void
Set the holder phone