Skip to content

Commit 2e4d25c

Browse files
committed
style: Add type hints
1 parent 76a0020 commit 2e4d25c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/BibliographicRecord.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Scriptotek\Marc;
44

5+
use Scriptotek\Marc\Exceptions\UnknownRecordType;
56
use Scriptotek\Marc\Fields\Isbn;
67
use Scriptotek\Marc\Fields\Subject;
78
use Scriptotek\Marc\Fields\SubjectInterface;
@@ -15,6 +16,10 @@ class BibliographicRecord extends Record
1516
* Marc21::ISBD_PUNCTUATION_INCLUDED, Marc21::NON_ISBD_PUNCTUATION_OMITTED
1617
* or Marc21::UNKNOWN_CATALOGING_FORM.
1718
*
19+
* @property Isbn[] isbns
20+
* @property string title
21+
* @property SubjectInterface[] subjects
22+
*
1823
* @return string
1924
* @throws UnknownRecordType
2025
*/

src/Record.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
* methods of File_MARC and File_MARCXML, which are hard-wired to call
1717
* `new File_MARC_Record()`. The down-side of the wrapping approach is that we
1818
* break static code analysis and IDE code hinting.
19+
*
20+
* @property string id
21+
* @property string type
1922
*/
2023
class Record
2124
{

0 commit comments

Comments
 (0)