Browse Source

Merge branch 'develop'

master
Guillaume Bourgeois 10 months ago
parent
commit
94b2d625b1
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      Statistic/Statistic.php

+ 3
- 1
Statistic/Statistic.php View File

public function setData(string $propertyName, string $key, $value) public function setData(string $propertyName, string $key, $value)
{ {
if (isset($this->properties[$propertyName])) { if (isset($this->properties[$propertyName])) {
$this->properties[$propertyName]['data'][$key] += $value;
if(isset($this->properties[$propertyName]['data'][$key])) {
$this->properties[$propertyName]['data'][$key] += $value;
}
$this->properties[$propertyName]['total_period'] += $value; $this->properties[$propertyName]['total_period'] += $value;
} else { } else {
throw new \Exception('La proprieté "' . $propertyName . '" n\'existe pas '); throw new \Exception('La proprieté "' . $propertyName . '" n\'existe pas ');

Loading…
Cancel
Save