You are here

abstract class DataInterpreterBase in RESTful 7.2

Hierarchy

Expanded class hierarchy of DataInterpreterBase

1 file declares its use of DataInterpreterBase
DataInterpreterVariable.php in modules/restful_example/src/Plugin/resource/variables/DataInterpreterVariable.php
Contains \Drupal\restful_example\Plugin\resource\variables\DataInterpreterVariable.

File

src/Plugin/resource/DataInterpreter/DataInterpreterBase.php, line 10
Contains \Drupal\restful\Plugin\resource\DataInterpreter\DataInterpreter.

Namespace

Drupal\restful\Plugin\resource\DataInterpreter
View source
abstract class DataInterpreterBase implements DataInterpreterInterface {

  /**
   * The account.
   *
   * @var object
   */
  protected $account;

  /**
   * The wrapper.
   *
   * @var mixed
   */
  protected $wrapper;

  /**
   * Constructs a DataInterpreter object.
   *
   * @param object $account
   *   The fully loaded object.
   * @param mixed $wrapper
   *   The container wrapper.
   */
  public function __construct($account, $wrapper) {
    $this->account = $account;
    $this->wrapper = $wrapper;
  }

  /**
   * {@inheritdoc}
   */
  public function getAccount() {
    return $this->account;
  }

  /**
   * {@inheritdoc}
   */
  public function getWrapper() {
    return $this->wrapper;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
DataInterpreterBase::$account protected property The account.
DataInterpreterBase::$wrapper protected property The wrapper.
DataInterpreterBase::getAccount public function Get the account. Overrides DataInterpreterInterface::getAccount
DataInterpreterBase::getWrapper public function Get the wrapper. Overrides DataInterpreterInterface::getWrapper 1
DataInterpreterBase::__construct public function Constructs a DataInterpreter object.