RealisticDummyContentGenerator.php in Realistic Dummy Content 8.2
File
api/src/includes/RealisticDummyContentGenerator.php
View source
<?php
namespace Drupal\realistic_dummy_content_api\includes;
abstract class RealisticDummyContentGenerator {
private $type;
private $bundle;
private $num;
private $more;
public function __construct($type, $bundle, $num, $more) {
$this->type = $type;
$this->bundle = $bundle;
$this->num = $num;
if (isset($more['kill']) && $more['kill']) {
$this->kill = TRUE;
}
else {
$this->kill = FALSE;
}
}
public function getBundle() {
return $this->bundle;
}
public function getType() {
return $this->type;
}
public function getKill() {
return $this->kill;
}
public function getNum() {
return $this->num;
}
public function generate() {
$this
->implementGenerate();
}
}