<?php/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/namespaceSymfony\Component\Validator\Tests\Fixtures;
useSymfony\Component\Validator\Mapping\Loader\FilesLoaderasBaseFilesLoader;
useSymfony\Component\Validator\Mapping\Loader\LoaderInterface;
abstract class FilesLoaderextends BaseFilesLoader {
protected $timesCalled = 0;
protected $loader;
public function__construct(array $paths, LoaderInterface $loader) {
$this->loader = $loader;
parent::__construct($paths);
}
protected functiongetFileLoaderInstance($file) {
$this->timesCalled++;
return$this->loader;
}
public functiongetTimesCalled() {
return$this->timesCalled;
}
}