You are here

EntityStoreInterface.php in Commerce Core 8.2

File

modules/store/src/Entity/EntityStoreInterface.php
View 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

Namesort descending Description
EntityStoreInterface Defines a common interface for entities that belong to a single store.