X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseCollection.php;h=5b35653fdd661c86a5d79d16ee3585429c7a81d9;hb=3f523a88b0af4e2a73b29917da33d221abef9647;hp=5a20acee7f4f2a0f1ccf6e34fd6d2a6e03330d64;hpb=9827e933a2a1b8e93f293d4e6293384126e5784c;p=friendica.git diff --git a/src/BaseCollection.php b/src/BaseCollection.php index 5a20acee7f..5b35653fdd 100644 --- a/src/BaseCollection.php +++ b/src/BaseCollection.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica; @@ -17,14 +36,14 @@ abstract class BaseCollection extends \ArrayIterator protected $totalCount = 0; /** - * @param BaseModel[] $models - * @param int|null $totalCount + * @param BaseEntity[] $entities + * @param int|null $totalCount */ - public function __construct(array $models = [], int $totalCount = null) + public function __construct(array $entities = [], int $totalCount = null) { - parent::__construct($models); + parent::__construct($entities); - $this->totalCount = $totalCount ?? count($models); + $this->totalCount = $totalCount ?? count($entities); } /**