# betterdocs/4.9.3/includes/Dependencies/PhpParser/Node/Stmt/Const_.php

BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ &amp; Chatbot, version 4.9.3. 27 lines.

- Page: https://pluginprobe.com/plugins/betterdocs/4.9.3/code/includes/Dependencies/PhpParser/Node/Stmt/Const_.php
- Raw: https://pluginprobe.com/plugins/betterdocs/4.9.3/raw/includes/Dependencies/PhpParser/Node/Stmt/Const_.php
- Modified: 2023-08-14T08:41:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/betterdocs/4.9.3/code/includes/Dependencies/PhpParser/Node/Stmt/Const_.php#L10-L20`.

```php
<?php

namespace WPDeveloper\BetterDocs\Dependencies\PhpParser\Node\Stmt;

use WPDeveloper\BetterDocs\Dependencies\PhpParser\Node;

class Const_ extends Node\Stmt
{
    /** @var Node\Const_[] Constant declarations */
    public $consts;

    /**
     * Constructs a const list node.
     *
     * @param Node\Const_[] $consts     Constant declarations
     * @param array         $attributes Additional attributes
     */
    public function __construct(array $consts, array $attributes = array()) {
        parent::__construct($attributes);
        $this->consts = $consts;
    }

    public function getSubNodeNames() {
        return array('consts');
    }
}

```
