Page MenuHomeWickedGov Phorge

VarLinksSet.php
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

VarLinksSet.php

<?php declare( strict_types=1 );
namespace SecurityCheckPlugin;
use Phan\Language\Element\TypedElementInterface;
use Phan\Library\Set;
/**
* Convenience class for better type inference.
*
* @method PreservedTaintedness offsetGet( \Phan\Language\Element\TypedElementInterface $object )
* @method offsetSet( \Phan\Language\Element\TypedElementInterface $object, PreservedTaintedness $data )
* @method void attach(TypedElementInterface $object, PreservedTaintedness $data)
* @method TypedElementInterface current()
* @phan-file-suppress PhanParamSignatureMismatch,PhanParamSignaturePHPDocMismatchParamType
* @phan-file-suppress PhanParamSignaturePHPDocMismatchTooManyRequiredParameters
*/
class VarLinksSet extends Set {
public function __toString(): string {
$children = [];
foreach ( $this as $var ) {
$children[] = $var->getName() . ': ' . $this[$var]->toShortString();
}
return '[' . implode( ',', $children ) . ']';
}
public function __clone() {
foreach ( $this as $var ) {
$this[$var] = clone $this[$var];
}
}
}

File Metadata

Mime Type
text/x-php
Expires
Aug 15 2026, 18:33 (12 w, 3 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4a/58/1c7ab47b8be6cf52ab0b58a060ba
Default Alt Text
VarLinksSet.php (1 KB)

Event Timeline