| Methods | 
			
	
			
				
					
	public
					
					
				
			 | 
			
				find(Node|Node[] $nodes, callable $filter): Node[]
	
		Find all nodes satisfying a filter callback.
	 
	
	Find all nodes satisfying a filter callback. 
 
							Parameters
							
									
										| $nodes   | 
										Single node or array of nodes to search in 
 | 
									 
									
										| $filter   | 
										Filter callback: function(Node $node) : bool 
 | 
									 
							 
							Returns
							Found nodes satisfying the filter callback 
 
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				findInstanceOf(Node|Node[] $nodes, string $class): Node[]
	
		Find all nodes that are instances of a certain class.
	 
	
	Find all nodes that are instances of a certain class. 
 
							Parameters
							
									
										| $nodes   | 
										Single node or array of nodes to search in 
 | 
									 
									
										| $class   | 
										Class name 
 | 
									 
							 
							Returns
							Found nodes (all instances of $class) 
 
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				findFirst(Node|Node[] $nodes, callable $filter): null|Node
	
		Find first node satisfying a filter callback.
	 
	
	Find first node satisfying a filter callback. 
 
							Parameters
							
									
										| $nodes   | 
										Single node or array of nodes to search in 
 | 
									 
									
										| $filter   | 
										Filter callback: function(Node $node) : bool 
 | 
									 
							 
							Returns
							Found node (or null if none found) 
 
	 
			 | 
		
			#
		 | 
	
	
			
				
					
	public
					
					
				
			 | 
			
				findFirstInstanceOf(Node|Node[] $nodes, string $class): null|Node
	
		Find first node that is an instance of a certain class.
	 
	
	Find first node that is an instance of a certain class. 
 
							Parameters
							
									
										| $nodes   | 
										Single node or array of nodes to search in 
 | 
									 
									
										| $class   | 
										Class name 
 | 
									 
							 
							Returns
							Found node, which is an instance of $class (or null if none found) 
 
	 
			 | 
		
			#
		 |