Use global namespace+minor fixes

This commit is contained in:
Dennis Eichhorn 2019-02-04 22:29:55 +01:00
parent d62e9a1494
commit c2560ee7b9
8 changed files with 44 additions and 0 deletions

View File

@ -126,6 +126,9 @@ class KanbanBoard implements \JsonSerializable
return false;
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : array
{
return [];

View File

@ -49,6 +49,11 @@ final class KanbanBoardMapper 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 = [
'columns' => [
@ -59,6 +64,12 @@ final class KanbanBoardMapper extends DataMapperAbstract
],
];
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $belongsTo = [
'createdBy' => [
'mapper' => AccountMapper::class,

View File

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

View File

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

View File

@ -47,6 +47,11 @@ final class KanbanCardCommentMapper 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 = [
'media' => [

View File

@ -48,6 +48,12 @@ final class KanbanCardMapper extends DataMapperAbstract
'kanban_card_created_by' => ['name' => 'kanban_card_created_by', 'type' => 'int', 'internal' => 'createdBy'],
];
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static $belongsTo = [
'createdBy' => [
'mapper' => AccountMapper::class,
@ -60,6 +66,11 @@ final class KanbanCardMapper 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 = [
'media' => [

View File

@ -94,6 +94,9 @@ class KanbanColumn implements \JsonSerializable
return false;
}
/**
* {@inheritdoc}
*/
public function jsonSerialize() : array
{
return [];

View File

@ -45,6 +45,11 @@ final class KanbanColumnMapper 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 = [
'cards' => [