* @param $extraContent Optional extra HTML content
* @return $linkContent Rendered text link content
*/
- private function renderLinkContentWithTextExtraContent ($linkText, $linkTitle, $extraContent='') {
+ private function renderLinkContentWithTextExtraContent (string $linkText, string $linkTitle, string $extraContent = '') {
// Construct link content
$linkContent = sprintf('<a href="{?base_url?}/%s%s" title="%s">%s</a>',
$this->getLinkBase(),
* @param $linkName Name of the link we shall generate
* @return void
*/
- protected final function setLinkName ($linkName) {
- $this->linkName = (string) $linkName;
+ protected final function setLinkName (string $linkName) {
+ $this->linkName = $linkName;
}
/**
* @param $linkBase Base of the link we shall generate
* @return void
*/
- protected final function setLinkBase ($linkBase) {
- $this->linkBase = (string) $linkBase;
+ protected final function setLinkBase (string $linkBase) {
+ $this->linkBase = $linkBase;
}
/**
* @param $groupCode Code to open and close groups
* @return void
*/
- public function addLinkGroup ($groupId, $groupText, $groupCode = 'div') {
+ public function addLinkGroup (string $groupId, string $groupText, string $groupCode = 'div') {
// Is a group with that name open?
if ($this->ifGroupOpenedPreviously()) {
// Then close it here
* @return void
* @throws NoGroupOpenedException If no previous group was opened
*/
- public function addLinkNote ($groupId, $groupNote, $groupCode = 'div') {
+ public function addLinkNote (string $groupId, string $groupNote, string $groupCode = 'div') {
// Check if a previous group was opened
if ($this->ifGroupOpenedPreviously() === false) {
// No group was opened before!
* @return void
* @throws NoGroupOpenedException If no previous group was opened
*/
- protected function addActionLink ($linkAction, $linkText, $linkTitle) {
+ protected function addActionLink (string $linkAction, string $linkText, string $linkTitle) {
// Check if a previous group was opened
if ($this->ifGroupOpenedPreviously() === false) {
// No group was opened before!
* @param $languageId Language id string to use
* @return void
*/
- public function addActionLinkById ($linkAction, $languageId) {
+ public function addActionLinkById (string $linkAction, string $languageId) {
// Resolve the language string
$languageResolvedText = FrameworkBootstrap::getLanguageInstance()->getMessage('link_' . $languageId . '_text');
* @param $languageId Language id string to use
* @return void
*/
- public function addLinkWithTextById ($languageId) {
+ public function addLinkWithTextById (string $languageId) {
// Resolve the language string
$languageResolvedText = FrameworkBootstrap::getLanguageInstance()->getMessage('link_' . $languageId . '_text');