OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
php
/
Composer
/
DependencyResolver
/
Operation
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
07/20/2024 06:32:22 AM
rwxr-xr-x
📄
InstallOperation.php
1.32 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
MarkAliasInstalledOperation.php
1.49 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
MarkAliasUninstalledOperation.php
1.49 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
OperationInterface.php
803 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
SolverOperation.php
1020 bytes
01/31/2018 03:28:18 PM
rw-r--r--
📄
UninstallOperation.php
1.33 KB
01/31/2018 03:28:18 PM
rw-r--r--
📄
UpdateOperation.php
1.79 KB
01/31/2018 03:28:18 PM
rw-r--r--
Editing: UpdateOperation.php
Close
<?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\Operation; use Composer\Package\PackageInterface; /** * Solver update operation. * * @author Konstantin Kudryashov <ever.zet@gmail.com> */ class UpdateOperation extends SolverOperation { protected $initialPackage; protected $targetPackage; /** * Initializes update operation. * * @param PackageInterface $initial initial package * @param PackageInterface $target target package (updated) * @param string $reason update reason */ public function __construct(PackageInterface $initial, PackageInterface $target, $reason = null) { parent::__construct($reason); $this->initialPackage = $initial; $this->targetPackage = $target; } /** * Returns initial package. * * @return PackageInterface */ public function getInitialPackage() { return $this->initialPackage; } /** * Returns target package. * * @return PackageInterface */ public function getTargetPackage() { return $this->targetPackage; } /** * Returns job type. * * @return string */ public function getJobType() { return 'update'; } /** * {@inheritDoc} */ public function __toString() { return 'Updating '.$this->initialPackage->getPrettyName().' ('.$this->formatVersion($this->initialPackage).') to '. $this->targetPackage->getPrettyName(). ' ('.$this->formatVersion($this->targetPackage).')'; } }