You are here

public function ShippingMethod::setStores in Commerce Shipping 8.2

Sets the stores.

Parameters

\Drupal\commerce_store\Entity\StoreInterface[] $stores: The stores.

Return value

$this

Overrides EntityStoresInterface::setStores

File

src/Entity/ShippingMethod.php, line 92

Class

ShippingMethod
Defines the shipping method entity class.

Namespace

Drupal\commerce_shipping\Entity

Code

public function setStores(array $stores) {
  $this
    ->set('stores', $stores);
  return $this;
}