__construct() __construct(\RecursiveIteratorIterator $iterator, integer $minDepth, integer $maxDepth = PHP_INT_MAX) Parameters \RecursiveIteratorIterator $iterator The Iterator to filter integer $minDepth The min depth integer $maxDepth The max depth
accept() accept() : boolean Filters the iterator values. Returns boolean — true if the value should be kept, false otherwise