You are here

public function Incident::__construct in Radioactivity 8.3

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

Constructor.

Parameters

string $field_name: The field name from the incident.

string $entity_type: The entity type from the incident.

string|int $entity_id: The entity id from the incident.

int|float $energy: The energy from the incident.

string $hash: The hash from the incident.

File

src/Incident.php, line 64

Class

Incident
Data class for Radioactivity Incident.

Namespace

Drupal\radioactivity

Code

public function __construct($field_name, $entity_type, $entity_id, $energy, $hash = NULL) {
  $this->fieldName = $field_name;
  $this->entityType = $entity_type;
  $this->entityId = $entity_id;
  $this->energy = $energy;
  $this->hash = $hash;
}