Use global namespace+minor fixes

This commit is contained in:
Dennis Eichhorn 2019-02-04 22:29:55 +01:00
parent 0ff2ebacb5
commit d0ec244f5e
4 changed files with 14 additions and 0 deletions

View File

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

View File

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

View File

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

View File

@ -50,6 +50,11 @@ final class QAQuestionMapper extends DataMapperAbstract
* *
* @var array<string, array<string, null|string>> * @var array<string, array<string, null|string>>
* @since 1.0.0 * @since 1.0.0
*/ /**
* Has many relation.
*
* @var array<string, array<string, string>>
* @since 1.0.0
*/ */
protected static $hasMany = [ protected static $hasMany = [
'answers' => [ 'answers' => [