Add PHPDocs

This commit is contained in:
crazywhalecc 2025-11-04 13:38:11 +08:00
parent 08362fb6e5
commit 6d1c6d7f61
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

View File

@ -486,6 +486,11 @@ class Extension
return $this->build_static;
}
/**
* Get the library dependencies that current extension depends on.
*
* @param bool $recursive Whether it includes dependencies recursively
*/
public function getLibraryDependencies(bool $recursive = false): array
{
$ret = array_filter($this->dependencies, fn ($x) => $x instanceof LibraryBase);