Skip to content

Commit

Permalink
DataObjectCollection add new type
Browse files Browse the repository at this point in the history
  • Loading branch information
akbarali1 committed Mar 30, 2024
1 parent 4676a40 commit 3334abf
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name":"akbarali/data-object",
"version":"2.3",
"version":"2.4",
"description":"Data Object PHP Laravel",
"license":"MIT",
"minimum-stability":"stable",
Expand Down
1 change: 0 additions & 1 deletion src/DataObjectBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ public function toArray(bool $trim_nulls = false): array
*/
public function toSnakeArray(bool $trim_nulls = false): array
{
//TODO: Bunga ham DOCache qo`shish kerak
$data = [];
try {
$class = new \ReflectionClass(static::class);
Expand Down
5 changes: 1 addition & 4 deletions src/DataObjectCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
class DataObjectCollection
{

/**
* @var Collection
*/
public Collection $items;
public Collection|\Illuminate\Database\Eloquent\Collection $items;
public int $totalCount;
public int $limit;
public int $page;
Expand Down

0 comments on commit 3334abf

Please sign in to comment.