class InvalidPackageException
@author Jordi Boggiano <j.boggiano@seld.be>
Hierarchy
- class \Composer\Package\Loader\InvalidPackageException extends \Composer\Package\Loader\Exception
Expanded class hierarchy of InvalidPackageException
2 files declare their use of InvalidPackageException
- ConfigValidator.php in vendor/
composer/ composer/ src/ Composer/ Util/ ConfigValidator.php - VcsRepository.php in vendor/
composer/ composer/ src/ Composer/ Repository/ VcsRepository.php
File
-
vendor/
composer/ composer/ src/ Composer/ Package/ Loader/ InvalidPackageException.php, line 18
Namespace
Composer\Package\LoaderView source
class InvalidPackageException extends \Exception {
/** @var list<string> */
private $errors;
/** @var list<string> */
private $warnings;
/** @var mixed[] package config */
private $data;
/**
* @param list<string> $errors
* @param list<string> $warnings
* @param mixed[] $data
*/
public function __construct(array $errors, array $warnings, array $data) {
$this->errors = $errors;
$this->warnings = $warnings;
$this->data = $data;
parent::__construct("Invalid package information: \n" . implode("\n", array_merge($errors, $warnings)));
}
/**
* @return mixed[]
*/
public function getData() : array {
return $this->data;
}
/**
* @return list<string>
*/
public function getErrors() : array {
return $this->errors;
}
/**
* @return list<string>
*/
public function getWarnings() : array {
return $this->warnings;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
InvalidPackageException::$data | private | property | @var mixed[] package config |
InvalidPackageException::$errors | private | property | @var list<string> |
InvalidPackageException::$warnings | private | property | @var list<string> |
InvalidPackageException::getData | public | function | |
InvalidPackageException::getErrors | public | function | |
InvalidPackageException::getWarnings | public | function | |
InvalidPackageException::__construct | public | function |