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
Sat, May 16, 21:07 (1 d, 20 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
db/c7/0ab63d5fbe32c02acfb154e56521
Default Alt Text
VarLinksSet.php (1 KB)

Event Timeline