for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright MediaCT. All rights reserved.
* https://www.mediact.nl
*/
namespace Mediact\DependencyGuard\Php\Filter;
class SymbolFilterChain implements SymbolFilterInterface
{
/** @var SymbolFilterInterface[] */
private $filters;
* Constructor.
*
* @param SymbolFilterInterface ...$filters
public function __construct(SymbolFilterInterface ...$filters)
$this->filters = $filters;
}
* Filter the given symbol.
* @param string $symbol
* @return bool
public function __invoke(string $symbol): bool
foreach ($this->filters as $filter) {
if (!$filter->__invoke($symbol)) {
return false;
return true;