You are here

function RadioactivityIncident::__construct in Radioactivity 7.2

File

includes/RadioactivityIncident.inc, line 19
Incident class

Class

RadioactivityIncident
@file Incident class

Code

function __construct($entity_type, $bundle, $field_name, $language, $entity_id, $energy, $time, $floodProtected) {
  $this->entityType = $entity_type;
  $this->bundle = $bundle;
  $this->fieldName = $field_name;
  $this->language = $language;
  $this->entityId = $entity_id;
  $this->energy = $energy;
  $this->time = $time;
  $this->source = $this
    ->getSource();
  $this->floodProtected = $floodProtected;
}