You are here

public function Context::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/sebastian/recursion-context/src/Context.php \SebastianBergmann\RecursionContext\Context::__construct()
  2. 8 core/lib/Drupal/Core/Plugin/Context/Context.php \Drupal\Core\Plugin\Context\Context::__construct()
  3. 8 core/lib/Drupal/Component/Plugin/Context/Context.php \Drupal\Component\Plugin\Context\Context::__construct()
  4. 8 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Context.php \phpDocumentor\Reflection\DocBlock\Context::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Context.php \phpDocumentor\Reflection\DocBlock\Context::__construct()

Cteates a new context.

Parameters

string $namespace The namespace where this DocBlock: resides in.

array $namespace_aliases List of namespace aliases => Fully: Qualified Namespace.

string $lsen Name of the structural element, within: the namespace.

File

vendor/phpdocumentor/reflection-docblock/src/phpDocumentor/Reflection/DocBlock/Context.php, line 42

Class

Context
The context in which a DocBlock occurs.

Namespace

phpDocumentor\Reflection\DocBlock

Code

public function __construct($namespace = '', array $namespace_aliases = array(), $lsen = '') {
  if (!empty($namespace)) {
    $this
      ->setNamespace($namespace);
  }
  $this
    ->setNamespaceAliases($namespace_aliases);
  $this
    ->setLSEN($lsen);
}