mirror of
https://github.com/Karaka-Management/oms-Knowledgebase.git
synced 2026-01-11 17:38:40 +00:00
formatting fixes, bug fixes and support impl.
This commit is contained in:
parent
8e1ece8d7d
commit
b37a830baf
|
|
@ -17,7 +17,7 @@ namespace Modules\Knowledgebase\Controller;
|
|||
use phpOMS\Module\ModuleAbstract;
|
||||
|
||||
/**
|
||||
* Task class.
|
||||
* Knowledgebase controller class.
|
||||
*
|
||||
* @package Modules\Knowledgebase
|
||||
* @license OMS License 1.0
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ declare(strict_types=1);
|
|||
namespace Modules\Knowledgebase\Models;
|
||||
|
||||
/**
|
||||
* Task class.
|
||||
* Null model class.
|
||||
*
|
||||
* @package Modules\Knowledgebase\Models
|
||||
* @license OMS License 1.0
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ declare(strict_types=1);
|
|||
namespace Modules\Knowledgebase\Models;
|
||||
|
||||
/**
|
||||
* Task class.
|
||||
* Null model class.
|
||||
*
|
||||
* @package Modules\Knowledgebase\Models
|
||||
* @license OMS License 1.0
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ declare(strict_types=1);
|
|||
namespace Modules\Knowledgebase\Models;
|
||||
|
||||
/**
|
||||
* Task class.
|
||||
* Null model class.
|
||||
*
|
||||
* @package Modules\Knowledgebase\Models
|
||||
* @license OMS License 1.0
|
||||
|
|
|
|||
|
|
@ -112,13 +112,13 @@ class WikiCategory implements \JsonSerializable
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setL11n($name, string $lang = ISO639x1Enum::_EN) : void
|
||||
public function setL11n(string|WikiCategoryL11n $name, string $lang = ISO639x1Enum::_EN) : void
|
||||
{
|
||||
if ($name instanceof WikiCategoryL11n) {
|
||||
$this->name = $name;
|
||||
} elseif ($this->name instanceof WikiCategoryL11n && \is_string($name)) {
|
||||
} elseif (isset($this->name) && $this->name instanceof WikiCategoryL11n) {
|
||||
$this->name->name = $name;
|
||||
} elseif (\is_string($name)) {
|
||||
} else {
|
||||
$this->name = new WikiCategoryL11n();
|
||||
$this->name->name = $name;
|
||||
$this->name->setLanguage($lang);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user