EntityStoreInterface.php in Commerce Core 8.2
Namespace
Drupal\commerce_store\EntityFile
modules/store/src/Entity/EntityStoreInterface.phpView source
<?php
namespace Drupal\commerce_store\Entity;
/**
* Defines a common interface for entities that belong to a single store.
*/
interface EntityStoreInterface {
/**
* Gets the store.
*
* @return \Drupal\commerce_store\Entity\StoreInterface|null
* The store entity, or null.
*/
public function getStore();
/**
* Sets the store.
*
* @param \Drupal\commerce_store\Entity\StoreInterface $store
* The store entity.
*
* @return $this
*/
public function setStore(StoreInterface $store);
/**
* Gets the store ID.
*
* @return int
* The store ID.
*/
public function getStoreId();
/**
* Sets the store ID.
*
* @param int $store_id
* The store ID.
*
* @return $this
*/
public function setStoreId($store_id);
}
Interfaces
Name | Description |
---|---|
EntityStoreInterface | Defines a common interface for entities that belong to a single store. |