public function __construct($type) { $str = sprintf('Некорректный тип зависимости %s', $type); parent::__construct($str); }
/** * @param Plugin $plugin * @param Dependency $dependency */ function __construct($plugin, $dependency) { parent::__construct('Plugin "' . $plugin->getId() . '" needs an older version of "' . $dependency->getPluginId() . '" to be installed, ' . $dependency->getMaxVersion() . ' at highest!'); }