Documentation

StringContainerHelper
in package

FinalYes

Table of Contents

Methods

getChildText()  : string
Extract text literals from all descendant nodes
isOneOf()  : bool

Methods

getChildText()

Extract text literals from all descendant nodes

public static getChildText(Node $node[, array<string|int, string> $excludeTypes = [] ]) : string
Parameters
$node : Node

Parent node

$excludeTypes : array<string|int, string> = []

Optional list of node class types to exclude

Return values
string

Concatenated literals

isOneOf()

private static isOneOf(object $object, array<string|int, string> $classesOrInterfacesToCheck) : bool
Parameters
$object : object
$classesOrInterfacesToCheck : array<string|int, string>
Tags
psalm-pure
Return values
bool

        
On this page

Search results