X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseCollection.php;h=c4d637a3672642cb604fabdd161ce8de69387fe0;hb=8b6ace6629ab4fe229c4c35ff388efe320602a16;hp=5a20acee7f4f2a0f1ccf6e34fd6d2a6e03330d64;hpb=3297d5c3e66675fff455ba31fc3fdbd5f683e1c5;p=friendica.git diff --git a/src/BaseCollection.php b/src/BaseCollection.php index 5a20acee7f..c4d637a367 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); } /**