Add getter methods for installation lifecycle steps
This commit is contained in:
parent
44dc1498f7
commit
91fe129bf4
2 changed files with 61 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue