Yaffs site version 1.1
[yaffs-website] / vendor / symfony / finder / Tests / FakeAdapter / UnsupportedAdapter.php
1 <?php
2
3 /*
4  * This file is part of the Symfony package.
5  *
6  * (c) Fabien Potencier <fabien@symfony.com>
7  *
8  * For the full copyright and license information, please view the LICENSE
9  * file that was distributed with this source code.
10  */
11
12 namespace Symfony\Component\Finder\Tests\FakeAdapter;
13
14 use Symfony\Component\Finder\Adapter\AbstractAdapter;
15
16 /**
17  * @author Jean-François Simon <contact@jfsimon.fr>
18  */
19 class UnsupportedAdapter extends AbstractAdapter
20 {
21     /**
22      * {@inheritdoc}
23      */
24     public function searchInDirectory($dir)
25     {
26         return new \ArrayIterator(array());
27     }
28
29     /**
30      * {@inheritdoc}
31      */
32     public function getName()
33     {
34         return 'unsupported';
35     }
36
37     /**
38      * {@inheritdoc}
39      */
40     protected function canBeUsed()
41     {
42         return false;
43     }
44 }