Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. PhpDocParserHelper.php

function PhpDocParserHelper::getPrinter

File

vendor/slevomat/coding-standard/SlevomatCodingStandard/Helpers/PhpDocParserHelper.php, line 53

Class

PhpDocParserHelper
@internal

Namespace

SlevomatCodingStandard\Helpers

Code

public static function getPrinter() : Printer {
    static $printer;
    if ($printer === null) {
        $printer = new Printer();
    }
    return $printer;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal