class RngOperationRecord in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/RngOperationRecord.php \Drupal\rng\RngOperationRecord
- 8 src/RngOperationRecord.php \Drupal\rng\RngOperationRecord
Stores operations executed on an entity during a request.
Hierarchy
- class \Drupal\rng\RngOperationRecord
Expanded class hierarchy of RngOperationRecord
File
- src/
RngOperationRecord.php, line 8
Namespace
Drupal\rngView source
class RngOperationRecord {
/**
* The operation executed on this entity.
*
* @var string|null
*/
protected $operation;
/**
* The entity type ID.
*
* @var string|null
*/
protected $entityTypeId;
/**
* The entity ID.
*
* @var string|null
*/
protected $entityId;
/**
* Gets the operation executed on this entity.
*
* @return string|null
* The operation executed on this entity, or NULL if not set.
*/
public function getOperation() {
return $this->operation;
}
/**
* Sets the operation executed on this entity.
*
* @param string $operation
* The operation executed on this entity.
*
* @return $this
* Return this operation record for chaining.
*/
public function setOperation($operation) {
$this->operation = $operation;
return $this;
}
/**
* Get the entity type ID.
*
* @return string|null
* Gets the entity type ID, or NULL if not set.
*/
public function getEntityTypeId() {
return $this->entityTypeId;
}
/**
* Set the entity type ID.
*
* @param string $entity_type_id
* The entity type ID.
*
* @return $this
* Return this operation record for chaining.
*/
public function setEntityTypeId($entity_type_id) {
$this->entityTypeId = $entity_type_id;
return $this;
}
/**
* Get the entity ID.
*
* @return string|null
* Get the entity ID, or NULL if not set.
*/
public function getEntityId() {
return $this->entityId;
}
/**
* Set the entity ID.
*
* @param string $entity_id
* Sets the entity ID.
*
* @return $this
* Return this operation record for chaining.
*/
public function setEntityId($entity_id) {
$this->entityId = $entity_id;
return $this;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
RngOperationRecord:: |
protected | property | The entity ID. | |
RngOperationRecord:: |
protected | property | The entity type ID. | |
RngOperationRecord:: |
protected | property | The operation executed on this entity. | |
RngOperationRecord:: |
public | function | Get the entity ID. | |
RngOperationRecord:: |
public | function | Get the entity type ID. | |
RngOperationRecord:: |
public | function | Gets the operation executed on this entity. | |
RngOperationRecord:: |
public | function | Set the entity ID. | |
RngOperationRecord:: |
public | function | Set the entity type ID. | |
RngOperationRecord:: |
public | function | Sets the operation executed on this entity. |