diff --git a/CHANGELOG.md b/CHANGELOG.md index d01c74b..2cf70af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 This update introduces bug fixes +### Added + - Add getter methods for installation lifecycle steps + ### Changed - Updated DocStrings in PackageManager diff --git a/src/ncc/Objects/ProjectConfiguration/Installer.php b/src/ncc/Objects/ProjectConfiguration/Installer.php index 1f85d93..8d3c17d 100644 --- a/src/ncc/Objects/ProjectConfiguration/Installer.php +++ b/src/ncc/Objects/ProjectConfiguration/Installer.php @@ -84,6 +84,64 @@ $this->post_update = []; } + /** + * Retrieves the pre-installation configuration. + * + * @return array The pre-installation configuration settings. + */ + public function getPreInstall(): array + { + return $this->pre_install; + } + + /** + * + * @return array Returns the post-installation steps. + */ + public function getPostInstall(): array + { + return $this->post_install; + } + + /** + * Retrieves the list of pre-uninstall tasks. + * + * @return array The array containing pre-uninstall tasks. + */ + public function getPreUninstall(): array + { + return $this->pre_uninstall; + } + + /** + * Retrieves the post-uninstall steps array. + * + * @return array An array containing the post-uninstall steps. + */ + public function getPostUninstall(): array + { + return $this->post_uninstall; + } + + /** + * + * @return array The pre-update data array. + */ + public function getPreUpdate(): array + { + return $this->pre_update; + } + + /** + * Retrieves the list of post-update actions. + * + * @return array An array containing post-update actions. + */ + public function getPostUpdate(): array + { + return $this->post_update; + } + /** * @inheritDoc */