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