Complex expressions

Here is the list of the most complex expressions used in the code. A complex expression is an expression that requires more than 20 tokens to be build.

Literal arrays are omitted.

File Count Expression
/src/Message/RestCreatePlanRequest.php:3011$data = array('name' => $this->getName( ), 'description' => $this->getDescription( ), 'type' => $this->getType( ), 'payment_definitions' => $this->getPaymentDefinitions( ), 'merchant_preferences' => $this->getMerchantPreferences( ),  )
/src/Message/RestCreateSubscriptionRequest.php:4241$data = array('name' => $this->getName( ), 'description' => $this->getDescription( ), 'start_date' => $this->getStartDate( )->format('c'), 'agreement_details' => $this->getAgreementDetails( ), 'payer' => $this->getPayerDetails( ), 'plan' => array('id' => $this->getPlanId( ),  ), 'shipping_address' => $this->getShippingAddress( ), 'override_merchant_preferences' => $this->getMerchantPreferences( ), 'override_charge_models' => $this->getChargeModel( ),  )
/src/Message/AbstractRestRequest.php:1651$httpResponse $this->httpClient->request($this->getHttpMethod( ), $this->getEndpoint( ), array('Accept' => 'application/json''Authorization' => 'Bearer ' $this->getToken( ), 'Content-type' => 'application/json''PayPal-Partner-Attribution-Id' => $this->getReferrerCode( ),  ), $body)
/src/Message/RestTokenRequest.php:341$httpResponse $this->httpClient->request($this->getHttpMethod( ), $this->getEndpoint( ), array('Accept' => 'application/json''Authorization' => 'Basic ' base64_encode("{$this->getClientId( )}:{$this->getSecret( )}"),  ), $body)
/src/Message/RestCreateCardRequest.php:781$data = array('number' => $this->getCard( )->getNumber( ), 'type' => $this->getCard( )->getBrand( ), 'expire_month' => $this->getCard( )->getExpiryMonth( ), 'expire_year' => $this->getCard( )->getExpiryYear( ), 'cvv2' => $this->getCard( )->getCvv( ), 'first_name' => $this->getCard( )->getFirstName( ), 'last_name' => $this->getCard( )->getLastName( ), 'billing_address' => array('line1' => $this->getCard( )->getAddress1( ), 'city' => $this->getCard( )->getCity( ), 'state' => $this->getCard( )->getState( ), 'postal_code' => $this->getCard( )->getPostcode( ), 'country_code' => strtoupper($this->getCard( )->getCountry( )),  ))
/src/Message/RestAuthorizeRequest.php:2661$data['payer']['funding_instruments'][] = array('credit_card' => array('number' => $this->getCard( )->getNumber( ), 'type' => $this->getCard( )->getBrand( ), 'expire_month' => $this->getCard( )->getExpiryMonth( ), 'expire_year' => $this->getCard( )->getExpiryYear( ), 'cvv2' => $this->getCard( )->getCvv( ), 'first_name' => $this->getCard( )->getFirstName( ), 'last_name' => $this->getCard( )->getLastName( ), 'billing_address' => array('line1' => $this->getCard( )->getAddress1( ), 'city' => $this->getCard( )->getCity( ), 'state' => $this->getCard( )->getState( ), 'postal_code' => $this->getCard( )->getPostcode( ), 'country_code' => strtoupper($this->getCard( )->getCountry( )),  )))
/src/Message/RestAuthorizeRequest.php:2431$itemList[] = array('name' => $item->getName( ), 'description' => $item->getDescription( ), 'quantity' => $item->getQuantity( ), 'price' => $this->formatCurrency($item->getPrice( )), 'currency' => $this->getCurrency( ))
/src/Message/RestAuthorizeRequest.php:2201$data = array('intent' => 'authorize''payer' => array('payment_method' => 'credit_card''funding_instruments' => array( )), 'transactions' => array(array('description' => $this->getDescription( ), 'amount' => array('total' => $this->getAmount( ), 'currency' => $this->getCurrency( ),  ), 'invoice_number' => $this->getTransactionId( ))), 'experience_profile_id' => $this->getExperienceProfileId( ))