⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.247
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
452945
/
root
/
usr
/
share
/
php
/
Composer
/
Plugin
/
View File Name :
PrePoolCreateEvent.php
* Jordi Boggiano
* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Composer\Plugin; use Composer\EventDispatcher\Event; use Composer\Repository\RepositoryInterface; use Composer\DependencyResolver\Request; use Composer\Package\BasePackage; /** * The pre command run event. * * @author Jordi Boggiano
*/ class PrePoolCreateEvent extends Event { /** * @var RepositoryInterface[] */ private $repositories; /** * @var Request */ private $request; /** * @var int[] array of stability => BasePackage::STABILITY_* value * @phpstan-var array
*/ private $acceptableStabilities; /** * @var int[] array of package name => BasePackage::STABILITY_* value * @phpstan-var array
*/ private $stabilityFlags; /** * @var array[] of package => version => [alias, alias_normalized] * @phpstan-var array
> */ private $rootAliases; /** * @var string[] * @phpstan-var array
*/ private $rootReferences; /** * @var BasePackage[] */ private $packages; /** * @var BasePackage[] */ private $unacceptableFixedPackages; /** * @param string $name The event name * @param RepositoryInterface[] $repositories * @param int[] $acceptableStabilities array of stability => BasePackage::STABILITY_* value * @param int[] $stabilityFlags array of package name => BasePackage::STABILITY_* value * @param array[] $rootAliases array of package => version => [alias, alias_normalized] * @param string[] $rootReferences * @param BasePackage[] $packages * @param BasePackage[] $unacceptableFixedPackages * * @phpstan-param array
$acceptableStabilities * @phpstan-param array
$stabilityFlags * @phpstan-param array
> $rootAliases * @phpstan-param array
$rootReferences */ public function __construct($name, array $repositories, Request $request, array $acceptableStabilities, array $stabilityFlags, array $rootAliases, array $rootReferences, array $packages, array $unacceptableFixedPackages) { parent::__construct($name); $this->repositories = $repositories; $this->request = $request; $this->acceptableStabilities = $acceptableStabilities; $this->stabilityFlags = $stabilityFlags; $this->rootAliases = $rootAliases; $this->rootReferences = $rootReferences; $this->packages = $packages; $this->unacceptableFixedPackages = $unacceptableFixedPackages; } /** * @return RepositoryInterface[] */ public function getRepositories() { return $this->repositories; } /** * @return Request */ public function getRequest() { return $this->request; } /** * @return int[] array of stability => BasePackage::STABILITY_* value * @phpstan-return array
*/ public function getAcceptableStabilities() { return $this->acceptableStabilities; } /** * @return int[] array of package name => BasePackage::STABILITY_* value * @phpstan-return array
*/ public function getStabilityFlags() { return $this->stabilityFlags; } /** * @return array[] of package => version => [alias, alias_normalized] * @phpstan-return array
> */ public function getRootAliases() { return $this->rootAliases; } /** * @return string[] * @phpstan-return array
*/ public function getRootReferences() { return $this->rootReferences; } /** * @return BasePackage[] */ public function getPackages() { return $this->packages; } /** * @return BasePackage[] */ public function getUnacceptableFixedPackages() { return $this->unacceptableFixedPackages; } /** * @param BasePackage[] $packages * * @return void */ public function setPackages(array $packages) { $this->packages = $packages; } /** * @param BasePackage[] $packages * * @return void */ public function setUnacceptableFixedPackages(array $packages) { $this->unacceptableFixedPackages = $packages; } }