summaryrefslogtreecommitdiffstats
path: root/Aufgabe06/vendor/symfony/finder/Symfony/Component/Finder/Adapter/AbstractAdapter.php
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-05-11 15:02:33 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-05-11 15:02:33 +0200
commita7e17cb70e9306f8887bd2b5ca1a37edcbe3ea0f (patch)
treebf6e04c9bdba66e249fd6b78391e132da130848c /Aufgabe06/vendor/symfony/finder/Symfony/Component/Finder/Adapter/AbstractAdapter.php
parentea3fed0df4eaedd820f3f405502b62efe5952f8f (diff)
downloadInternetTechnologien-a7e17cb70e9306f8887bd2b5ca1a37edcbe3ea0f.tar.gz
InternetTechnologien-a7e17cb70e9306f8887bd2b5ca1a37edcbe3ea0f.zip
Let composer manage its own files
Diffstat (limited to 'Aufgabe06/vendor/symfony/finder/Symfony/Component/Finder/Adapter/AbstractAdapter.php')
-rw-r--r--Aufgabe06/vendor/symfony/finder/Symfony/Component/Finder/Adapter/AbstractAdapter.php236
1 files changed, 0 insertions, 236 deletions
diff --git a/Aufgabe06/vendor/symfony/finder/Symfony/Component/Finder/Adapter/AbstractAdapter.php b/Aufgabe06/vendor/symfony/finder/Symfony/Component/Finder/Adapter/AbstractAdapter.php
deleted file mode 100644
index 4ddd913..0000000
--- a/Aufgabe06/vendor/symfony/finder/Symfony/Component/Finder/Adapter/AbstractAdapter.php
+++ /dev/null
@@ -1,236 +0,0 @@
-<?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;
-
-/**
- * Interface for finder engine implementations.
- *
- * @author Jean-François Simon <contact@jfsimon.fr>
- */
-abstract class AbstractAdapter implements AdapterInterface
-{
- protected $followLinks = false;
- protected $mode = 0;
- protected $minDepth = 0;
- protected $maxDepth = PHP_INT_MAX;
- protected $exclude = array();
- protected $names = array();
- protected $notNames = array();
- protected $contains = array();
- protected $notContains = array();
- protected $sizes = array();
- protected $dates = array();
- protected $filters = array();
- protected $sort = false;
- protected $paths = array();
- protected $notPaths = array();
- protected $ignoreUnreadableDirs = false;
-
- private static $areSupported = array();
-
- /**
- * {@inheritdoc}
- */
- public function isSupported()
- {
- $name = $this->getName();
-
- if (!array_key_exists($name, self::$areSupported)) {
- self::$areSupported[$name] = $this->canBeUsed();
- }
-
- return self::$areSupported[$name];
- }
-
- /**
- * {@inheritdoc}
- */
- public function setFollowLinks($followLinks)
- {
- $this->followLinks = $followLinks;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setMode($mode)
- {
- $this->mode = $mode;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setDepths(array $depths)
- {
- $this->minDepth = 0;
- $this->maxDepth = PHP_INT_MAX;
-
- foreach ($depths as $comparator) {
- switch ($comparator->getOperator()) {
- case '>':
- $this->minDepth = $comparator->getTarget() + 1;
- break;
- case '>=':
- $this->minDepth = $comparator->getTarget();
- break;
- case '<':
- $this->maxDepth = $comparator->getTarget() - 1;
- break;
- case '<=':
- $this->maxDepth = $comparator->getTarget();
- break;
- default:
- $this->minDepth = $this->maxDepth = $comparator->getTarget();
- }
- }
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setExclude(array $exclude)
- {
- $this->exclude = $exclude;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setNames(array $names)
- {
- $this->names = $names;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setNotNames(array $notNames)
- {
- $this->notNames = $notNames;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setContains(array $contains)
- {
- $this->contains = $contains;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setNotContains(array $notContains)
- {
- $this->notContains = $notContains;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setSizes(array $sizes)
- {
- $this->sizes = $sizes;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setDates(array $dates)
- {
- $this->dates = $dates;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setFilters(array $filters)
- {
- $this->filters = $filters;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setSort($sort)
- {
- $this->sort = $sort;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setPath(array $paths)
- {
- $this->paths = $paths;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function setNotPath(array $notPaths)
- {
- $this->notPaths = $notPaths;
-
- return $this;
- }
-
- /**
- * {@inheritdoc}
- */
- public function ignoreUnreadableDirs($ignore = true)
- {
- $this->ignoreUnreadableDirs = (bool) $ignore;
-
- return $this;
- }
-
- /**
- * Returns whether the adapter is supported in the current environment.
- *
- * This method should be implemented in all adapters. Do not implement
- * isSupported in the adapters as the generic implementation provides a cache
- * layer.
- *
- * @see isSupported()
- *
- * @return bool Whether the adapter is supported
- */
- abstract protected function canBeUsed();
-}