コード例 #1
0
 /**
  * Creates a new install info.
  *
  * @param string $packageName The package name. Must be a non-empty string.
  * @param string $installPath The path where the package is installed.
  *                            If a relative path is given, the path is
  *                            assumed to be relative to the install path
  *                            of the root package.
  *
  * @throws InvalidArgumentException If any of the arguments is invalid.
  */
 public function __construct($packageName, $installPath)
 {
     Assert::packageName($packageName);
     Assert::systemPath($installPath);
     $this->packageName = $packageName;
     $this->installPath = $installPath;
 }