SuiteCRM-Core/core/legacy/Statistics/SubpanelLeadsTotal.php
Dillon-Brown 5a8f382f03 Refactor all existing namespaces
Signed-off-by: Dillon-Brown <dillon.brown@salesagility.com>
2021-03-30 19:22:31 +01:00

39 lines
727 B
PHP

<?php
namespace App\Legacy\Statistics;
use App\Entity\Statistic;
use App\Service\StatisticsProviderInterface;
class SubpanelLeadsTotal implements StatisticsProviderInterface
{
public const KEY = 'leads';
/**
* @inheritDoc
*/
public function getKey(): string
{
return self::KEY;
}
/**
* @inheritDoc
*/
public function getData(array $param): Statistic
{
$statistic = new Statistic();
$statistic->setId(self::KEY);
$statistic->setData([
'value' => '4'
]);
$statistic->setMetadata([
'type' => 'single-value-statistic',
'dataType' => 'int',
]);
return $statistic;
}
}