You are here

SelectQueryRaw.php in Salesforce Suite 5.0.x

Same filename and directory in other branches
  1. 8.4 src/SelectQueryRaw.php
  2. 8.3 src/SelectQueryRaw.php

Namespace

Drupal\salesforce

File

src/SelectQueryRaw.php
View source
<?php

namespace Drupal\salesforce;


/**
 * Class SelectQueryRaw to construct SOQL manually from a string.
 */
class SelectQueryRaw implements SelectQueryInterface {

  /**
   * The query.
   *
   * @var string
   */
  protected $query;

  /**
   * SelectQueryRaw constructor.
   *
   * @param string $query
   *   The SOQL query.
   */
  public function __construct($query) {
    $this->query = $query;
  }

  /**
   * {@inheritdoc}
   */
  public function __toString() {
    return str_replace(' ', '+', $this->query);
  }

}

Classes

Namesort descending Description
SelectQueryRaw Class SelectQueryRaw to construct SOQL manually from a string.