Skip to content

Commit

Permalink
Merge pull request #16 from beatrycze-volk/fix-docu
Browse files Browse the repository at this point in the history
Fix PHP docs for `ModsReader` class
  • Loading branch information
beatrycze-volk authored Apr 30, 2024
2 parents 0182ae1 + 41b1380 commit 4bfd5ce
Showing 1 changed file with 40 additions and 20 deletions.
60 changes: 40 additions & 20 deletions src/Mods/ModsReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

/**
* Metadata MODS reader class for the 'php-mods-reader' library.
* @see https://www.loc.gov/standards/mods/userguide/generalapp.html
*
* @access public
*/
Expand All @@ -62,7 +63,8 @@ public function __construct(\SimpleXMLElement $xml)
}

/**
* Get
* Get the value of the <abstract> element.
* @see https://www.loc.gov/standards/mods/userguide/abstract.html
*
* @access public
*
Expand All @@ -81,7 +83,8 @@ public function getAbstract(string $query = ''): ?AbstractElement
}

/**
* Get
* Get the the array of the <accessCondition> elements.
* @see https://www.loc.gov/standards/mods/userguide/accesscondition.html
*
* @access public
*
Expand All @@ -103,7 +106,8 @@ public function getAccessConditions(string $query = ''): array
}

/**
* Get
* Get the the array of the <classification> elements.
* @see https://www.loc.gov/standards/mods/userguide/classification.html
*
* @access public
*
Expand All @@ -125,7 +129,8 @@ public function getClassifications(string $query = ''): array
}

/**
* Get
* Get the the array of the <extension> elements.
* @see https://www.loc.gov/standards/mods/userguide/extension.html
*
* @access public
*
Expand All @@ -147,7 +152,8 @@ public function getExtensions(string $query = ''): array
}

/**
* Get
* Get the the array of the <genre> elements.
* @see https://www.loc.gov/standards/mods/userguide/genre.html
*
* @access public
*
Expand All @@ -169,7 +175,8 @@ public function getGenres(string $query = ''): array
}

/**
* Get
* Get the the array of the <identifier> elements.
* @see https://www.loc.gov/standards/mods/userguide/identifier.html
*
* @access public
*
Expand Down Expand Up @@ -214,7 +221,8 @@ public function getLanguages(string $query = ''): array
}

/**
* Get
* Get the the array of the <location> elements.
* @see https://www.loc.gov/standards/mods/userguide/location.html
*
* @access public
*
Expand All @@ -236,7 +244,8 @@ public function getLocations(string $query = ''): array
}

/**
* Get
* Get the the array of the <name> elements.
* @see https://www.loc.gov/standards/mods/userguide/name.html
*
* @access public
*
Expand All @@ -258,7 +267,8 @@ public function getNames(string $query = ''): array
}

/**
* Get
* Get the the array of the <note> elements.
* @see https://www.loc.gov/standards/mods/userguide/note.html
*
* @access public
*
Expand All @@ -280,7 +290,8 @@ public function getNotes(string $query = ''): array
}

/**
* Get
* Get the the array of the <originInfo> elements.
* @see https://www.loc.gov/standards/mods/userguide/origininfo.html
*
* @access public
*
Expand All @@ -302,7 +313,8 @@ public function getOriginInfos(string $query = ''): array
}

/**
* Get
* Get the the array of the <part> elements.
* @see https://www.loc.gov/standards/mods/userguide/part.html
*
* @access public
*
Expand All @@ -324,7 +336,8 @@ public function getParts(string $query = ''): array
}

/**
* Get
* Get the the array of the <physicalDescription> elements.
* @see https://www.loc.gov/standards/mods/userguide/physicaldescription.html
*
* @access public
*
Expand All @@ -346,10 +359,11 @@ public function getPhysicalDescriptions(string $query = ''): array
}

/**
* Get
* Get the the array of the <recordInfo> elements.
* @see https://www.loc.gov/standards/mods/userguide/recordinfo.html
*
* @access public
*
*
* @param string $query The XPath query for metadata search
*
* @return RecordInfo[]
Expand All @@ -368,7 +382,8 @@ public function getRecordInfos(string $query = ''): array
}

/**
* Get
* Get the the array of the <relatedItem> elements.
* @see https://www.loc.gov/standards/mods/userguide/relateditem.html
*
* @access public
*
Expand All @@ -390,7 +405,8 @@ public function getRelatedItems(string $query = ''): array
}

/**
* Get
* Get the the array of the <subject> elements.
* @see https://www.loc.gov/standards/mods/userguide/subject.html
*
* @access public
*
Expand All @@ -412,7 +428,8 @@ public function getSubjects(string $query = ''): array
}

/**
* Get
* Get the the array of the <tableOfContents> elements.
* @see https://www.loc.gov/standards/mods/userguide/tableofcontents.html
*
* @access public
*
Expand All @@ -434,7 +451,8 @@ public function getTableOfContents(string $query = ''): array
}

/**
* Get
* Get the the array of the <targetAudience> elements.
* @see https://www.loc.gov/standards/mods/userguide/targetaudience.html
*
* @access public
*
Expand All @@ -456,7 +474,8 @@ public function getTargetAudience(string $query = ''): array
}

/**
* Get title info
* Get the the array of the <titleInfo> elements.
* @see https://www.loc.gov/standards/mods/userguide/titleinfo.html
*
* @access public
*
Expand All @@ -478,7 +497,8 @@ public function getTitleInfos(string $query = ''): array
}

/**
* Get
* Get the value of the <typeOfResource> element.
* @see https://www.loc.gov/standards/mods/userguide/typeofresource.html
*
* @access public
*
Expand Down

0 comments on commit 4bfd5ce

Please sign in to comment.