public function Finder::depth in Database Sanitize 7
Adds tests for the directory depth.
Usage:
$finder->depth('> 1') // the Finder will start matching at level 1. $finder->depth('< 3') // the Finder will descend at most 3 levels of directories below the starting point.
Parameters
string|int $level The depth level expression:
Return value
$this
See also
File
- vendor/
symfony/ finder/ Finder.php, line 118
Class
- Finder
- Finder allows to build rules to find files and directories.
Namespace
Symfony\Component\FinderCode
public function depth($level) {
$this->depths[] = new Comparator\NumberComparator($level);
return $this;
}