作者 lackoxygen

feat:res

... ... @@ -6,7 +6,7 @@ use Illuminate\Contracts\Support\Arrayable;
use Illuminate\Support\Arr;
use Lackoxygen\TiktokShop\Util\Json;
class ResultSet implements Arrayable
class ResultSet implements Arrayable, \Countable
{
/**
* @var array|mixed
... ... @@ -78,6 +78,14 @@ class ResultSet implements Arrayable
}
/**
* @return int
*/
public function count(): int
{
return count($this->items);
}
/**
* @param $name
* @return $this|array|\ArrayAccess|mixed
*/
... ...