public function PaymentAwareTrait::setPayment in Payment 8.2
File
- src/
PaymentAwareTrait.php, line 33
Class
- PaymentAwareTrait
- Provides a default implementation of \Drupal\payment\PaymentAwareInterface.
Namespace
Drupal\paymentCode
public function setPayment(PaymentInterface $payment) {
$this->payment = $payment;
return $this;
}