WellCommerce\Bundle\PaymentBundle\Entity\PaymentMethod::setConfiguration PHP Méthode

setConfiguration() public méthode

public setConfiguration ( array $configuration )
$configuration array
    public function setConfiguration(array $configuration)
    {
        $this->configuration = $configuration;
    }

Usage Example

 public function create() : PaymentMethodInterface
 {
     $paymentMethod = new PaymentMethod();
     $paymentMethod->setHierarchy(0);
     $paymentMethod->setEnabled(true);
     $paymentMethod->setConfiguration([]);
     $paymentMethod->setShippingMethods($this->createEmptyCollection());
     $paymentMethod->setProcessor('');
     return $paymentMethod;
 }
All Usage Examples Of WellCommerce\Bundle\PaymentBundle\Entity\PaymentMethod::setConfiguration