You are here

Renderer.php in Site Audit 8.3

Namespace

Drupal\site_audit

File

src/Renderer.php
View source
<?php

namespace Drupal\site_audit;

use Drupal\Core\StringTranslation\StringTranslationTrait;

/**
 * Class Renderer.
 */
abstract class Renderer {
  use StringTranslationTrait;

  /**
   * The Report to be rendered.
   *
   * @var \Drupal\site_audit\Report
   */
  public $report;

  /**
   * The logger we are using for output.
   */
  public $logger;

  /**
   * Any options that have been passed in.
   */
  public $options;

  /**
   * Output interface.
   */
  public $output;

  /**
   *
   */
  public function __construct($report, $logger, $options, $output) {
    $this->report = $report;
    $this->logger = $logger;
    $this->options = $options;
    $this->output = $output;
  }

  /**
   *
   */
  public abstract function render($detail = FALSE);

}

Classes

Namesort descending Description
Renderer Class Renderer.