File: /home/armgroup/libs/vendor/chartisan/php/src/DatasetData.php
<?php
declare(strict_types=1);
namespace Chartisan\PHP;
/**
* Represents the dataset information.
*/
class DatasetData
{
/**
* Stores the dataset name.
*/
public string $name;
/**
* Stores the dataset values.
*
* @var array[float]
*/
public array $values;
/**
* Stores the dataset extra information if needed.
*/
public ?array $extra;
/**
* Creates a new instance of DatasetData.
*/
public function __construct(string $name, array $values, ?array $extra)
{
$this->name = $name;
$this->values = $values;
$this->extra = $extra;
}
}