Skip to content

Commit

Permalink
Typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasraoni committed Jan 21, 2025
1 parent 9f1a18b commit 5451cf4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
1 change: 1 addition & 0 deletions CrossrefExportPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ public function exportAsDownload(\PKP\context\Context $context, array $objects,
*
* @see PubObjectsExportPlugin::depositXML()
*
* @hook crossrefexportplugin::deposited [[$this, $response->getBody(), $objects]]
*/
public function depositXML($objects, $context, $filename)
{
Expand Down
21 changes: 4 additions & 17 deletions CrossrefPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,7 @@ private function _pluginInitialization()
* Add properties for Crossref to the DOI entity for storage in the database.
*
* @param string $hookName `Schema::get::doi`
* @param array $args [
*
* @option stdClass $schema
* ]
*
* @param array{schema: object{properties: array<string, object>}} $args
*/
public function addToSchema(string $hookName, array $args): bool
{
Expand All @@ -140,10 +136,7 @@ public function addToSchema(string $hookName, array $args): bool
* Includes plugin in list of configurable registration agencies for DOI depositing functionality
*
* @param string $hookName DoiSettingsForm::setEnabledRegistrationAgencies
* @param array $args [
*
* @option $enabledRegistrationAgencies array
* ]
* @param array{Collection<int,IDoiRegistrationAgency>} $args [Enabled registration agencies]
*/
public function addAsRegistrationAgencyOption($hookName, $args)
{
Expand All @@ -157,10 +150,7 @@ public function addAsRegistrationAgencyOption($hookName, $args)
* DOI was registered.
*
* @param string $hookName DoiListPanel::setConfig
* @param array $args [
*
* @option $config array
* ]
* @param array{array<string, mixed>} $args [Configuration]
*/
public function addRegistrationAgencyName(string $hookName, array $args): bool
{
Expand All @@ -174,10 +164,7 @@ public function addRegistrationAgencyName(string $hookName, array $args): bool
* Adds self to "allowed" list of pub object types that can be assigned DOIs for this registration agency.
*
* @param string $hookName DoiSetupSettingsForm::getObjectTypes
* @param array $args [
*
* @option array &$objectTypeOptions
* ]
* @param array{array<array<string, mixed>>} $args [Object type options]
*/
public function addAllowedObjectTypes(string $hookName, array $args): bool
{
Expand Down

0 comments on commit 5451cf4

Please sign in to comment.