attribution-1.0.x-dev/src/AttributionLicenseInterface.php

src/AttributionLicenseInterface.php
<?php

namespace Drupal\attribution;

use Drupal\Core\Config\Entity\ConfigEntityInterface;

/**
 * Provides an interface defining a license entity type.
 */
interface AttributionLicenseInterface extends ConfigEntityInterface {

  /**
   * Gets the id.
   *
   * @return string
   *   The id.
   */
  public function getId():string;

  /**
   * Sets the id.
   *
   * @param string $id
   *   The license id.
   *
   * @return $this
   */
  public function setId(string $id):self;

  /**
   * Gets the identifier.
   *
   * @return string
   *   The short identifier.
   */
  public function getIdentifier():string;

  /**
   * Sets the identifier.
   *
   * @param string $identifier
   *   The short identifier.
   *
   * @return $this
   */
  public function setIdentifier(string $identifier):self;

  /**
   * Gets the name.
   *
   * @return string
   *   The name.
   */
  public function getName():string;

  /**
   * Sets the name.
   *
   * @param string $name
   *   The license name.
   *
   * @return $this
   */
  public function setName(string $name):self;

  /**
   * Gets OSI certification status.
   *
   * @return bool
   *   The certification status.
   */
  public function isOsiCertified():bool;

  /**
   * Sets the OSI certification status.
   *
   * @param bool $status
   *   The OSI certification status.
   *
   * @return $this
   */
  public function setOsiCertified(bool $status):self;

  /**
   * Gets deprecation status.
   *
   * @return bool
   *   The deprecation status.
   */
  public function isDeprecated():bool;

  /**
   * Sets the deprecation status.
   *
   * @param bool $status
   *   The deprecation status.
   *
   * @return $this
   */
  public function setDeprecated(bool $status):self;

  /**
   * Gets the link.
   *
   * @return string
   *   The link.
   */
  public function getLink():string;

  /**
   * Sets the link.
   *
   * @param string $link
   *   The link to the license.
   *
   * @return $this
   */
  public function setLink(string $link):self;

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc