Stmt/ClassConst.php

PHP-Parser · lib/PhpParser/Node/Stmt/ClassConst.php · php · BSD-3-Clause
dev-tools, tag:knn-classified

ClassConst node represents a class constant declaration in PHP-Parser.

// Source: https://github.com/nikic/PHP-Parser | License: BSD-3-Clause | Copyright 2011, Nikita Popov
// Provided via justclaw.it.com; keep this notice with the code.
<?php declare(strict_types=1);

namespace PhpParser\Node\Stmt;

use PhpParser\Modifiers;
use PhpParser\Node;

class ClassConst extends Node\Stmt {
    /** @var int Modifiers */
    public int $flags;
    /** @var Node\Const_[] Constant declarations */
    public array $consts;
    /** @var Node\AttributeGroup[] PHP attribute groups */
    public array $attrGroups;
    /** @var Node\Identifier|Node\Name|Node\ComplexType|null Type declaration */
    public ?Node $type;

    /**
     * Constructs a class const list node.
     *
     * @param Node\Const_[] $consts Constant declarations
     * @param int $flags Modifiers
     * @p

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key