You are here

class SalesforceQueryEvent in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/src/Event/SalesforceQueryEvent.php \Drupal\salesforce_mapping\Event\SalesforceQueryEvent
  2. 8.3 modules/salesforce_mapping/src/Event/SalesforceQueryEvent.php \Drupal\salesforce_mapping\Event\SalesforceQueryEvent

Pull query event.

Hierarchy

Expanded class hierarchy of SalesforceQueryEvent

4 files declare their use of SalesforceQueryEvent
QueueHandler.php in modules/salesforce_pull/src/QueueHandler.php
SalesforceExampleSubscriber.php in modules/salesforce_example/src/EventSubscriber/SalesforceExampleSubscriber.php
SalesforcePullCommands.php in modules/salesforce_pull/src/Commands/SalesforcePullCommands.php
salesforce_pull.drush.inc in modules/salesforce_pull/salesforce_pull.drush.inc
Salesforce Pull drush 8 commands.

File

modules/salesforce_mapping/src/Event/SalesforceQueryEvent.php, line 12

Namespace

Drupal\salesforce_mapping\Event
View source
class SalesforceQueryEvent extends SalesforceBaseEvent {

  /**
   * The query to be issued.
   *
   * @var \Drupal\salesforce\SelectQueryInterface
   */
  protected $query;

  /**
   * The mapping.
   *
   * @var \Drupal\salesforce_mapping\Entity\SalesforceMappingInterface
   */
  protected $mapping;

  /**
   * SalesforceQueryEvent constructor.
   *
   * @param \Drupal\salesforce_mapping\Entity\SalesforceMappingInterface $mapping
   *   The mapping.
   * @param \Drupal\salesforce\SelectQueryInterface $query
   *   The query.
   */
  public function __construct(SalesforceMappingInterface $mapping, SelectQueryInterface $query) {
    $this->mapping = $mapping;
    $this->query = $query;
  }

  /**
   * Getter.
   *
   * @return \Drupal\salesforce\SelectQueryInterface
   *   The query.
   */
  public function getQuery() {
    return $this->query;
  }

  /**
   * Getter.
   *
   * @return \Drupal\salesforce_mapping\Entity\SalesforceMappingInterface
   *   The mapping.
   */
  public function getMapping() {
    return $this->mapping;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SalesforceQueryEvent::$mapping protected property The mapping.
SalesforceQueryEvent::$query protected property The query to be issued.
SalesforceQueryEvent::getMapping public function Getter.
SalesforceQueryEvent::getQuery public function Getter.
SalesforceQueryEvent::__construct public function SalesforceQueryEvent constructor.