From 5a1116aac83393e00cb8726bc1d772de9c072f23 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 4 Feb 2019 22:29:55 +0100 Subject: [PATCH] Use global namespace+minor fixes --- Models/EditorDoc.php | 3 +++ Models/EditorDocMapper.php | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/Models/EditorDoc.php b/Models/EditorDoc.php index 010d2f0..5a8500f 100644 --- a/Models/EditorDoc.php +++ b/Models/EditorDoc.php @@ -238,6 +238,9 @@ class EditorDoc implements ArrayableInterface, \JsonSerializable return (string) \json_encode($this->toArray()); } + /** + * {@inheritdoc} + */ public function jsonSerialize() { return $this->toArray(); diff --git a/Models/EditorDocMapper.php b/Models/EditorDocMapper.php index 27588e8..469502b 100644 --- a/Models/EditorDocMapper.php +++ b/Models/EditorDocMapper.php @@ -36,6 +36,12 @@ final class EditorDocMapper extends DataMapperAbstract 'editor_doc_created_at' => ['name' => 'editor_doc_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'], ]; + /** + * Belongs to. + * + * @var array> + * @since 1.0.0 + */ protected static $belongsTo = [ 'createdBy' => [ 'mapper' => AccountMapper::class,