Use global namespace+minor fixes

This commit is contained in:
Dennis Eichhorn 2019-02-04 22:29:55 +01:00
parent 4836b8fa37
commit a83dfc8092
3 changed files with 12 additions and 1 deletions

View File

@ -59,6 +59,9 @@ class WikiCategory implements \JsonSerializable
$this->parent = $parent;
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : array
{
return [];

View File

@ -127,6 +127,9 @@ class WikiDoc implements \JsonSerializable
$this->badges[] = $badge;
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : array
{
return [];

View File

@ -50,7 +50,12 @@ final class WikiDocMapper extends DataMapperAbstract
* @var array<string, array<string, null|string>>
* @since 1.0.0
*/
/*
/* /**
* Has many relation.
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $hasMany = [
'badges' => [
'mapper' => BadgeMapper::class,