From 28369ea623d41361235f12d0ed971844d4948e9c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 22 Oct 2011 19:04:26 +0200 Subject: [PATCH] Add missing docblock --- src/Composer/Installer/InstallerInterface.php | 6 ++++ src/Composer/Installer/LibraryInstaller.php | 28 +++++-------------- 2 files changed, 13 insertions(+), 21 deletions(-) diff --git a/src/Composer/Installer/InstallerInterface.php b/src/Composer/Installer/InstallerInterface.php index 23eab2a8b..f144c2828 100644 --- a/src/Composer/Installer/InstallerInterface.php +++ b/src/Composer/Installer/InstallerInterface.php @@ -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); } diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index b9a240058..a5064fde1 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/src/Composer/Installer/LibraryInstaller.php @@ -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()) {