-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…ations. (#214)
- Loading branch information
Showing
3 changed files
with
82 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Yiisoft\Yii\DataView; | ||
|
||
final class ListItemContext | ||
{ | ||
/** | ||
* @param array|object $data The current data being rendered. | ||
* @param int|string $key The key value associated with the current data. | ||
* @param int $index The zero-based index of the data in the array. | ||
* @param ListView $widget The list view object. | ||
*/ | ||
public function __construct( | ||
public readonly array|object $data, | ||
public readonly int|string $key, | ||
public readonly int $index, | ||
public readonly ListView $widget, | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters