PHP 8.2.31
Preview: NodeAttributes.php Size: 685 B
/opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/phpstan/phpdoc-parser/src/Ast/NodeAttributes.php

<?php

declare (strict_types=1);
namespace PHPStan\PhpDocParser\Ast;

use function array_key_exists;
trait NodeAttributes
{
    /** @var array<string, mixed> */
    private $attributes = [];
    /**
     * @param mixed $value
     */
    public function setAttribute(string $key, $value) : void
    {
        $this->attributes[$key] = $value;
    }
    public function hasAttribute(string $key) : bool
    {
        return array_key_exists($key, $this->attributes);
    }
    /**
     * @return mixed
     */
    public function getAttribute(string $key)
    {
        if ($this->hasAttribute($key)) {
            return $this->attributes[$key];
        }
        return null;
    }
}

Directory Contents

Dirs: 4 × Files: 6

Name Size Perms Modified Actions
ConstExpr DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
PhpDoc DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
Type DIR
- drwxr-xr-x 2024-11-08 13:59:10
Edit Download
709 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
313 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
375 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
685 B lrw-r--r-- 2024-11-08 13:59:10
Edit Download
10.69 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download
2.70 KB lrw-r--r-- 2024-11-08 13:59:10
Edit Download

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