/home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Kpi/Row
NameSizeModeActions
HookableKpiRowFactory.php39820644editdlrm
KpiRow.php24430644editdlrm
KpiRowFactoryInterface.php13430644editdlrm
KpiRowInterface.php17290644editdlrm
KpiRowPresenter.php16930644editdlrm
KpiRowPresenterInterface.php13770644editdlrm
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/src/Core/Kpi/Row/KpiRow.php (2443B)
* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Kpi\Row; use PrestaShop\PrestaShop\Core\Kpi\KpiInterface; /** * Class KpiRow defines a row of KPIs. */ final class KpiRow implements KpiRowInterface { /** * @var bool */ private $allowRefresh = true; /** * @var array[KpiInterface] */ private $kpis = []; /** * @var array */ private $options; /** * @param array $options */ public function __construct(array $options = []) { $this->options = $options; } /** * {@inheritdoc} */ public function addKpi(KpiInterface $kpi) { // setOptions() is optional & not part of interface to avoid BC break if (method_exists($kpi, 'setOptions')) { $kpi->setOptions($this->options); } $this->kpis[] = $kpi; } /** * @return array[KpiInterface] */ public function getKpis() { return $this->kpis; } /** * @param bool $allowRefresh */ public function setAllowRefresh($allowRefresh) { $this->allowRefresh = $allowRefresh; } /** * @return bool */ public function isRefreshAllowed() { return $this->allowRefresh; } /** * @return array */ public function getOptions() { return $this->options; } }