1
0
Fork 0

Add missing docblock

pull/61/head
Jordi Boggiano 2011-10-22 19:04:26 +02:00
parent 808a2c9448
commit 28369ea623
2 changed files with 13 additions and 21 deletions

View File

@ -55,5 +55,11 @@ interface InstallerInterface
*/
function uninstall(PackageInterface $package);
/**
* Returns the installation path of a package
*
* @param PackageInterface $package
* @return string path
*/
function getInstallPath(PackageInterface $package);
}

View File

@ -58,11 +58,7 @@ class LibraryInstaller implements InstallerInterface
}
/**
* Checks that specific package is installed.
*
* @param PackageInterface $package package instance
*
* @return Boolean
* {@inheritDoc}
*/
public function isInstalled(PackageInterface $package)
{
@ -70,11 +66,7 @@ class LibraryInstaller implements InstallerInterface
}
/**
* Installs specific package.
*
* @param PackageInterface $package package instance
*
* @throws InvalidArgumentException if provided package have no urls to download from
* {@inheritDoc}
*/
public function install(PackageInterface $package)
{
@ -85,12 +77,7 @@ class LibraryInstaller implements InstallerInterface
}
/**
* Updates specific package.
*
* @param PackageInterface $initial already installed package version
* @param PackageInterface $target updated version
*
* @throws InvalidArgumentException if $from package is not installed
* {@inheritDoc}
*/
public function update(PackageInterface $initial, PackageInterface $target)
{
@ -106,11 +93,7 @@ class LibraryInstaller implements InstallerInterface
}
/**
* Uninstalls specific package.
*
* @param PackageInterface $package package instance
*
* @throws InvalidArgumentException if package is not installed
* {@inheritDoc}
*/
public function uninstall(PackageInterface $package)
{
@ -124,6 +107,9 @@ class LibraryInstaller implements InstallerInterface
$this->repository->removePackage($package);
}
/**
* {@inheritDoc}
*/
public function getInstallPath(PackageInterface $package)
{
if (null === $package->getTargetDir()) {