Use global namespace+minor fixes

This commit is contained in:
Dennis Eichhorn 2019-02-04 22:29:55 +01:00
parent 1bc0deb236
commit 17b41c84ff
2 changed files with 6 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class Promotion
public function countTasks() : int
{
return count($this->tasks);
return \count($this->tasks);
}
public function getStart() : \DateTime

View File

@ -57,6 +57,11 @@ final class PromotionMapper 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 = [
'tasks' => [