Skip to content

Commit ffaf062

Browse files
rudolfbykerdanmichaelo
authored andcommitted
Add a method to get the wrapped record.
1 parent de5a9d3 commit ffaf062

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Record.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ public function __construct(File_MARC_Record $record)
4242
$this->record = $record;
4343
}
4444

45+
/**
46+
* Get the wrapped record.
47+
*
48+
* @return \File_MARC_Record
49+
*/
50+
public function getRecord()
51+
{
52+
return $this->record;
53+
}
54+
4555
public function getField($spec = null, $pcre = null)
4656
{
4757
$q = $this->record->getField($spec, $pcre);

0 commit comments

Comments
 (0)