EpalStudentEpalChosenInterface.php 2.57 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
<?php

namespace Drupal\epal\Entity;

use Drupal\Core\Entity\ContentEntityInterface;
use Drupal\Core\Entity\EntityChangedInterface;
use Drupal\user\EntityOwnerInterface;

/**
 * Provides an interface for defining Epal student epal chosen entities.
 *
 * @ingroup epal
 */
interface EpalStudentEpalChosenInterface extends  ContentEntityInterface, EntityChangedInterface, EntityOwnerInterface {

  // Add get/set methods for your configuration properties here.

  /**
   * Gets the Epal student epal chosen name.
   *
   * @return string
   *   Name of the Epal student epal chosen.
   */
  public function getName();

  /**
   * Sets the Epal student epal chosen name.
   *
   * @param string $name
   *   The Epal student epal chosen name.
   *
   * @return \Drupal\epal\Entity\EpalStudentEpalChosenInterface
   *   The called Epal student epal chosen entity.
   */
  public function setName($name);

  /**
   * Gets the Epal student epal chosen creation timestamp.
   *
   * @return int
   *   Creation timestamp of the Epal student epal chosen.
   */
  public function getCreatedTime();

  /**
   * Sets the Epal student epal chosen creation timestamp.
   *
   * @param int $timestamp
   *   The Epal student epal chosen creation timestamp.
   *
   * @return \Drupal\epal\Entity\EpalStudentEpalChosenInterface
   *   The called Epal student epal chosen entity.
   */
  public function setCreatedTime($timestamp);

  /**
   * Returns the Epal student epal chosen published status indicator.
   *
   * Unpublished Epal student epal chosen are only visible to restricted users.
   *
   * @return bool
   *   TRUE if the Epal student epal chosen is published.
   */
  public function isPublished();

  /**
   * Sets the published status of a Epal student epal chosen.
   *
   * @param bool $published
   *   TRUE to set this Epal student epal chosen to published, FALSE to set it to unpublished.
   *
   * @return \Drupal\epal\Entity\EpalStudentEpalChosenInterface
   *   The called Epal student epal chosen entity.
   */
  public function setPublished($published);
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
  
  //get/set methods for additional fields for  configuration properties.
  public function getStudent_id();
  public function setStudent_id($val);
  public function getEpal_id();
  public function setEpal_id($val);
  public function getChoice_no();
  public function setChoice_no($val);
  public function getPoints_for_order();
  public function setPoints_for_order($val);
  public function getDistance_from_epal();
  public function setDistance_from_epal($val);
  public function getPoints_for_distance();
  public function setPoints_for_distance($val);
  
91
}