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>
*/
class GenericRule extends Rule
{
/** @var int[] */
protected $literals;
/**
* @param int[] $literals
*/
public function __construct(array $literals, $reason, $reasonData)
{
parent::__construct($reason, $reasonData);
// sort all packages ascending by id
sort($literals);
$this->literals = $literals;
}
/**
* @return int[]
*/
public function getLiterals()
{
return $this->literals;
}
/**
* @inheritDoc
*/
public function getHash()
{
$data = unpack('ihash', md5(implode(',', $this->literals), true));
return $data['hash'];
}
/**
* Checks if this rule is equal to another one
*
* Ignores whether either of the rules is disabled.
*
* @param Rule $rule The rule to check against
* @return bool Whether the rules are equal
*/
public function equals(Rule $rule)
{
return $this->literals === $rule->getLiterals();
}
/**
* @return bool
*/
public function isAssertion()
{
return 1 === \count($this->literals);
}
/**
* Formats a rule as a string of the format (Literal1|Literal2|...)
*
* @return string
*/
public function __toString()
{
$result = $this->isDisabled() ? 'disabled(' : '(';
foreach ($this->literals as $i => $literal) {
if ($i != 0) {
$result .= '|';
}
$result .= $literal;
}
$result .= ')';
return $result;
}
}
| 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 |
|