You are here

public function SalesforcePullEvent::__construct in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 modules/salesforce_mapping/src/Event/SalesforcePullEvent.php \Drupal\salesforce_mapping\Event\SalesforcePullEvent::__construct()
  2. 5.0.x modules/salesforce_mapping/src/Event/SalesforcePullEvent.php \Drupal\salesforce_mapping\Event\SalesforcePullEvent::__construct()

SalesforcePullEvent constructor.

Parameters

\Drupal\salesforce_mapping\Entity\MappedObjectInterface $mappedObject: The mapped object.

string $op: The operation.

File

modules/salesforce_mapping/src/Event/SalesforcePullEvent.php, line 61

Class

SalesforcePullEvent
Salesforce pull event.

Namespace

Drupal\salesforce_mapping\Event

Code

public function __construct(MappedObjectInterface $mappedObject, $op) {
  $this->mappedObject = $mappedObject;
  $this->entity = $mappedObject
    ->getMappedEntity();
  $this->mapping = $mappedObject
    ->getMapping();
  $this->op = $op;
  $this->pullAllowed = TRUE;
}