You are here

public function Incident::__construct in Radioactivity 8.2

Same name and namespace in other branches
  1. 8.3 src/Incident.php \Drupal\radioactivity\Incident::__construct()
  2. 4.0.x src/Incident.php \Drupal\radioactivity\Incident::__construct()

Constructor

Parameters

type $field_name:

type $entity_type:

type $entity_id:

type $energy:

type|null $hash:

File

src/Incident.php, line 28

Class

Incident
Incident class

Namespace

Drupal\radioactivity

Code

public function __construct($field_name, $entity_type, $entity_id, $energy, $hash = null) {
  $this->field_name = $field_name;
  $this->entity_type = $entity_type;
  $this->entity_id = $entity_id;
  $this->energy = $energy;
  $this->hash = $hash;
}