49 private $filteredPaths;
70 $this->sensitive = $sensitive;
71 $this->environment = $environment;
72 $this->excludeList = $excludeList;
90 if (!isset($this->filteredPaths[
$type])) {
91 $this->filteredPaths[
$type] = $this->getPathsByType(
$type);
94 $isPresent = in_array(
$path, $this->filteredPaths[
$type]);
96 if (
$type == self::TYPE_SENSITIVE
100 $isPresent = $this->excludeList->isPresent(
$path);
124 private function getPathsByType(
$type)
128 $paths = $this->sensitive;
131 $paths = $this->environment;
137 return array_keys(array_filter(
140 return filter_var(
$value, FILTER_VALIDATE_BOOLEAN);
__construct(array $sensitive=[], array $environment=[], ExcludeList $excludeList=null)