X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FBaseCollection.php;h=5b35653fdd661c86a5d79d16ee3585429c7a81d9;hb=6749b2c887552feef3a671c4063425b11a92014a;hp=5a20acee7f4f2a0f1ccf6e34fd6d2a6e03330d64;hpb=09de4a5b47439542d5e73d5452e1d30da26c3ae6;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); } /**