mirror of
https://github.com/SuiteCRM/SuiteCRM-Core.git
synced 2025-09-02 08:09:19 +08:00
36 lines
637 B
PHP
36 lines
637 B
PHP
|
<?php
|
||
|
|
||
|
namespace SuiteCRM\Core\Legacy\Statistics;
|
||
|
|
||
|
use App\Entity\Statistic;
|
||
|
use App\Service\StatisticsProviderInterface;
|
||
|
|
||
|
class SubpanelDefault implements StatisticsProviderInterface
|
||
|
{
|
||
|
public const KEY = 'default';
|
||
|
|
||
|
/**
|
||
|
* @inheritDoc
|
||
|
*/
|
||
|
public function getKey(): string
|
||
|
{
|
||
|
return self::KEY;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @inheritDoc
|
||
|
*/
|
||
|
public function getData(array $param): Statistic
|
||
|
{
|
||
|
|
||
|
$statistic = new Statistic();
|
||
|
$statistic->setId(self::KEY);
|
||
|
$statistic->setData([
|
||
|
'type' => 'int',
|
||
|
'value' => '0'
|
||
|
]);
|
||
|
|
||
|
return $statistic;
|
||
|
}
|
||
|
}
|