You are here

abstract class Generator in Realistic Dummy Content 8

Hierarchy

  • class \Drupal\realistic_dummy_content_api\generators\Generator

Expanded class hierarchy of Generator

1 file declares its use of Generator
SimpleGenerator.php in api/src/generators/SimpleGenerator.php
Define autoload class.

File

api/src/generators/Generator.php, line 11
Define autoload class.

Namespace

Drupal\realistic_dummy_content_api\generators
View source
abstract class Generator {
  private $type;
  private $bundle;
  private $num;
  private $more;

  /**
   * @param $more = array()
   *   For future use.
   */
  function __construct($type, $bundle, $num, $more = array()) {
    $this->type = $type;
    $this->bundle = $bundle;
    $this->num = $num;
    if (isset($more['kill']) && $more['kill']) {
      $this->kill = TRUE;
    }
    else {
      $this->kill = FALSE;
    }
  }
  function GetBundle() {
    return $this->bundle;
  }
  function GetType() {
    return $this->type;
  }
  function GetKill() {
    return $this->kill;
  }
  function GetNum() {
    return $this->num;
  }
  function Generate() {
    $this
      ->_Generate_();
  }

}

Members