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

Breadcrumb

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

function Cast::__construct

Constructs a cast node.

Parameters

Expr $expr Expression:

array<string, mixed> $attributes Additional attributes:

File

vendor/nikic/php-parser/lib/PhpParser/Node/Expr/Cast.php, line 17

Class

Cast

Namespace

PhpParser\Node\Expr

Code

public function __construct(Expr $expr, array $attributes = []) {
    $this->attributes = $attributes;
    $this->expr = $expr;
}

API Navigation

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