LeanMapper\ImplicitFilters::__construct PHP Method

__construct() public method

public __construct ( array | string | Closur\Closure $filters, array $targetedArgs = [] )
$filters array | string | Closur\Closure
$targetedArgs array
    public function __construct($filters, array $targetedArgs = [])
    {
        if (!is_array($filters)) {
            if (!is_string($filters) and !$filters instanceof Closure) {
                throw new InvalidArgumentException("Argument \$filters must contain either string (name of filter), instance of Closure or array (with names of filters or instances of Closure).");
            }
            $filters = [$filters];
        }
        $this->filters = $filters;
        $this->targetedArgs = $targetedArgs;
    }