Вход Регистрация
Файл: symfony-2.7/src/Symfony/Component/Finder/Tests/FakeAdapter/FailingAdapter.php
Строк: 48
<?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.
 */

namespace SymfonyComponentFinderTestsFakeAdapter;

use 
SymfonyComponentFinderAdapterAbstractAdapter;
use 
SymfonyComponentFinderExceptionAdapterFailureException;

/**
 * @author Jean-François Simon <contact@jfsimon.fr>
 */
class FailingAdapter extends AbstractAdapter
{
    
/**
     * {@inheritdoc}
     */
    
public function searchInDirectory($dir)
    {
        throw new 
AdapterFailureException($this);
    }

    
/**
     * {@inheritdoc}
     */
    
public function getName()
    {
        return 
'failing';
    }

    
/**
     * {@inheritdoc}
     */
    
protected function canBeUsed()
    {
        return 
true;
    }
}
Онлайн: 2
Реклама