Sonata\Component\Payment\PaymentInterface::getCode PHP Method

getCode() public method

public getCode ( ) : string
return string
    public function getCode();

Usage Example

Example #1
0
 /**
  * {@inheritdoc}
  */
 public function setPaymentMethod(PaymentInterface $method = null)
 {
     $this->paymentMethod = $method;
     $this->paymentMethodCode = $method ? $method->getCode() : null;
 }