From 17289aaab884dbe3f30dace16f5357a715a56edd 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/Event.php | 2 +- Models/EventMapper.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Models/Event.php b/Models/Event.php index 9bff3e2..03e2982 100644 --- a/Models/Event.php +++ b/Models/Event.php @@ -200,7 +200,7 @@ class Event public function countTasks() : int { - return count($this->tasks); + return \count($this->tasks); } public function getId() : int diff --git a/Models/EventMapper.php b/Models/EventMapper.php index f47840d..d64a888 100644 --- a/Models/EventMapper.php +++ b/Models/EventMapper.php @@ -57,6 +57,11 @@ final class EventMapper extends DataMapperAbstract * * @var array> * @since 1.0.0 + */ /** + * Has many relation. + * + * @var array> + * @since 1.0.0 */ protected static $hasMany = [ 'tasks' => [