mirror of
https://github.com/ivuorinen/branch-usage-checker.git
synced 2026-02-18 22:50:05 +00:00
Initial commit
This commit is contained in:
14
app/Dto/PackagistApiStatsPayload.php
Normal file
14
app/Dto/PackagistApiStatsPayload.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Dto;
|
||||
|
||||
use Spatie\DataTransferObject\Attributes\MapFrom;
|
||||
|
||||
class PackagistApiStatsPayload extends \Spatie\DataTransferObject\DataTransferObject {
|
||||
public array $labels;
|
||||
#[MapFrom('values.[0]')]
|
||||
public string $version;
|
||||
#[MapFrom('values.[0][]')]
|
||||
public array $values;
|
||||
public string $average = 'monthly';
|
||||
}
|
||||
Reference in New Issue
Block a user