X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseCollection.php;h=5b35653fdd661c86a5d79d16ee3585429c7a81d9;hb=ab5a447bc2261522d0f5560f8933dd928a6fc6e3;hp=4d5803d58524e1b8dccfdba00a9b056c2fccef8a;hpb=0f0c58ddb36968845ebb25914e710c3f1324fbd6;p=friendica.git diff --git a/src/BaseCollection.php b/src/BaseCollection.php index 4d5803d585..5b35653fdd 100644 --- a/src/BaseCollection.php +++ b/src/BaseCollection.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica; @@ -17,15 +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->models = $models; - $this->totalCount = $totalCount ?? count($models); + $this->totalCount = $totalCount ?? count($entities); } /**