Skip to content

Commit

Permalink
[NDB_BVL_Instrument] Add get function to access protected selectMulti…
Browse files Browse the repository at this point in the history
…pleElements (#8381)
  • Loading branch information
zaliqarosli authored Feb 17, 2023
1 parent 299d950 commit 61c507b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion php/libraries/NDB_BVL_Instrument.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ abstract class NDB_BVL_Instrument extends NDB_Page
/**
* Array containing all multiselect elements in an instrument.
*/
protected $selectMultipleElements;
protected $selectMultipleElements = [];

/**
* Factory generates a new instrument instance of type
Expand Down Expand Up @@ -3105,4 +3105,15 @@ abstract class NDB_BVL_Instrument extends NDB_Page

return $instrumentNames;
}

/**
* Gets the current instrument instance selectMultipleElements
*
* @return array the select multiple elements of this instrument.
* @access public
*/
public function getSelectMultipleElements(): array
{
return $this->selectMultipleElements;
}
}

0 comments on commit 61c507b

Please # to comment.