class League / CommonMark / Node / StringContainerHelper
final

StringContainerHelper

Methods

public static

getChildText ( Node $node , array $excludeTypes ) : string

Extract text literals from all descendant nodes

Parameters

  • $node Node
    Parent node
  • $excludeTypes string[]
    Optional list of node class types to exclude
private static

isOneOf ( object $object , array $classesOrInterfacesToCheck ) : void

Parameters

  • $classesOrInterfacesToCheck string[]