Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions src/Product/RelatedWork.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ class RelatedWork
protected $WorkRelationCode;

/**
* WorkIdentifier
* Array of WorkIdentifiers
*
* @var WorkIdentifier
* @var arrayWorkIdentifier
*/
protected $WorkIdentifier;
protected $WorkIdentifier = [];

/**
* Set WorkRelationCode
Expand All @@ -33,14 +33,14 @@ public function setWorkRelationCode(CodeList164 $WorkRelationCode)
}

/**
* Set WorkIdentifier
* Add a new WorkIdentifier
*
* @param WorkIdentifier $WorkIdentifier
* @return void
*/
public function setWorkIdentifier(WorkIdentifier $WorkIdentifier)
public function addWorkIdentifier(WorkIdentifier $WorkIdentifier)
{
$this->WorkIdentifier = $WorkIdentifier;
$this->WorkIdentifier[] = $WorkIdentifier;
}

/**
Expand All @@ -56,11 +56,21 @@ public function getWorkRelationCode()
/**
* WorkIdentifier
*
* @return WorkIdentifier
* @return array
*/
public function getWorkIdentifier()
{
return $this->WorkIdentifier;
}

/**
* Remove WorkIdentifier
*
* @param WorkIdentifier $WorkIdentifier
* @return void
*/
public function removeWorkIdentifier(WorkIdentifier $WorkIdentifier)
{
}

}