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

Breadcrumb

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

function ExportNamedDeclaration::setDeclaration

Sets the exported declaration

Parameters

Declaration $declaration Exported declaration:

Return value

$this

File

vendor/mck89/peast/lib/Peast/Syntax/Node/ExportNamedDeclaration.php, line 69

Class

ExportNamedDeclaration
A node that represents an export named declaration. For example: export {foo} from "bar"

Namespace

Peast\Syntax\Node

Code

public function setDeclaration($declaration) {
    $this->assertType($declaration, "Declaration", true);
    $this->declaration = $declaration;
    return $this;
}

API Navigation

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