Example #1
0
 public function jsonSerialize()
 {
     return ['id' => $this->id, 'name' => $this->name, 'activityCount' => $this->activityCount, 'minActivityCount' => $this->minActivityCount, 'levelName' => $this->level ? $this->level->getName() : null, 'levelValue' => $this->level ? $this->level->getValue() : null];
 }