for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace SimpleSAML\Module\statistics\Statistics\FieldPresentation;
use SimpleSAML\XHTML\Template;
class Base
{
/** @var array */
protected $fields;
/** @var \SimpleSAML\XHTML\Template */
protected $template;
/** @var \SimpleSAML\Locale\Translate */
protected $translator;
/** @var string */
protected $config;
/**
* @param array $fields
* @param string $config
* @param \SimpleSAML\XHTML\Template $template
*/
public function __construct(array $fields, string $config, Template $template)
$this->config = $config;
$this->fields = $fields;
$this->template = $template;
$this->translator = $template->getTranslator();
}
* @return array
public function getPresentation(): array
return ['_' => 'Total'];