gnu-social/vendor/symfony/finder/Adapter/AdapterInterface.php

125 lines
2.2 KiB
PHP

<?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 Symfony\Component\Finder\Adapter;
/**
* @author Jean-François Simon <contact@jfsimon.fr>
*
* @deprecated since 2.8, to be removed in 3.0.
*/
interface AdapterInterface
{
/**
* @param bool $followLinks
*
* @return $this
*/
public function setFollowLinks($followLinks);
/**
* @param int $mode
*
* @return $this
*/
public function setMode($mode);
/**
* @return $this
*/
public function setExclude(array $exclude);
/**
* @return $this
*/
public function setDepths(array $depths);
/**
* @return $this
*/
public function setNames(array $names);
/**
* @return $this
*/
public function setNotNames(array $notNames);
/**
* @return $this
*/
public function setContains(array $contains);
/**
* @return $this
*/
public function setNotContains(array $notContains);
/**
* @return $this
*/
public function setSizes(array $sizes);
/**
* @return $this
*/
public function setDates(array $dates);
/**
* @return $this
*/
public function setFilters(array $filters);
/**
* @param \Closure|int $sort
*
* @return $this
*/
public function setSort($sort);
/**
* @return $this
*/
public function setPath(array $paths);
/**
* @return $this
*/
public function setNotPath(array $notPaths);
/**
* @param bool $ignore
*
* @return $this
*/
public function ignoreUnreadableDirs($ignore = true);
/**
* @param string $dir
*
* @return \Iterator Result iterator
*/
public function searchInDirectory($dir);
/**
* Tests adapter support for current platform.
*
* @return bool
*/
public function isSupported();
/**
* Returns adapter name.
*
* @return string
*/
public function getName();
}