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

Breadcrumb

  1. Drupal Core 11.1.x

MatchArm.php

Namespace

PhpParser\Node

File

vendor/nikic/php-parser/lib/PhpParser/Node/MatchArm.php

View source
<?php

declare (strict_types=1);
namespace PhpParser\Node;

use PhpParser\Node;
use PhpParser\NodeAbstract;
class MatchArm extends NodeAbstract {
    
    /** @var null|list<Node\Expr> */
    public ?array $conds;
    
    /** @var Node\Expr */
    public Expr $body;
    
    /**
     * @param null|list<Node\Expr> $conds
     */
    public function __construct(?array $conds, Node\Expr $body, array $attributes = []) {
        $this->conds = $conds;
        $this->body = $body;
        $this->attributes = $attributes;
    }
    public function getSubNodeNames() : array {
        return [
            'conds',
            'body',
        ];
    }
    public function getType() : string {
        return 'MatchArm';
    }

}

Classes

Title Deprecated Summary
MatchArm

API Navigation

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