PHP 8.2.31
Preview: FileWithoutNamespace.php Size: 782 B
//opt/cpanel/ea-wappspector/vendor/rector/rector/src/PhpParser/Node/CustomNode/FileWithoutNamespace.php

<?php

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

use PhpParser\Node\Stmt;
use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
/**
 * Inspired by https://github.com/phpstan/phpstan-src/commit/ed81c3ad0b9877e6122c79b4afda9d10f3994092
 */
final class FileWithoutNamespace extends Stmt implements StmtsAwareInterface
{
    /**
     * @var Stmt[]
     */
    public $stmts;
    /**
     * @param Stmt[] $stmts
     */
    public function __construct(array $stmts)
    {
        $this->stmts = $stmts;
        parent::__construct();
    }
    public function getType() : string
    {
        return 'FileWithoutNamespace';
    }
    /**
     * @return string[]
     */
    public function getSubNodeNames() : array
    {
        return ['stmts'];
    }
}

Directory Contents

Dirs: 0 × Files: 1

Name Size Perms Modified Actions
782 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).