1
0
Fork 0
composer/src/Composer/Composer.php

86 lines
1.8 KiB
PHP
Raw Normal View History

<?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;
use Composer\Package\PackageInterface;
use Composer\Package\PackageLock;
use Composer\Repository\RepositoryManager;
use Composer\Installer\InstallationManager;
use Composer\Downloader\DownloadManager;
/**
* @author Jordi Boggiano <j.boggiano@seld.be>
2011-09-16 19:14:06 +00:00
* @author Konstantin Kudryashiv <ever.zet@gmail.com>
*/
class Composer
{
const VERSION = '1.0.0-DEV';
private $package;
private $lock;
2011-09-25 21:19:12 +00:00
private $repositoryManager;
private $downloadManager;
private $installationManager;
public function setPackage(PackageInterface $package)
{
$this->package = $package;
}
public function getPackage()
{
return $this->package;
}
public function setPackageLock($lock)
{
$this->lock = $lock;
}
2011-09-16 19:14:06 +00:00
public function getPackageLock()
{
return $this->lock;
}
public function setRepositoryManager(RepositoryManager $manager)
{
2011-09-25 21:19:12 +00:00
$this->repositoryManager = $manager;
}
2011-09-16 19:14:06 +00:00
public function getRepositoryManager()
{
2011-09-25 21:19:12 +00:00
return $this->repositoryManager;
}
public function setDownloadManager(DownloadManager $manager)
{
2011-09-25 21:19:12 +00:00
$this->downloadManager = $manager;
}
public function getDownloadManager()
{
2011-09-25 21:19:12 +00:00
return $this->downloadManager;
}
public function setInstallationManager(InstallationManager $manager)
{
2011-09-25 21:19:12 +00:00
$this->installationManager = $manager;
2011-09-16 19:14:06 +00:00
}
public function getInstallationManager()
2011-09-16 19:14:06 +00:00
{
2011-09-25 21:19:12 +00:00
return $this->installationManager;
}
2011-09-17 11:18:34 +00:00
}