You are here

public function OrderInterface::setCustomer in Commerce Core 8.2

Sets the customer user.

Parameters

\Drupal\user\UserInterface $account: The customer user entity.

Return value

$this

1 method overrides OrderInterface::setCustomer()
Order::setCustomer in modules/order/src/Entity/Order.php
Sets the customer user.

File

modules/order/src/Entity/OrderInterface.php, line 77

Class

OrderInterface
Defines the interface for orders.

Namespace

Drupal\commerce_order\Entity

Code

public function setCustomer(UserInterface $account);