models/classes/runner/time/QtiTimeLine.php
public function fromArray($data)
    {
        $this->points = [];
        if (is_array($data)) {
            foreach ($data as $dataPoint) {
                $point = new TimePoint();
                $point->fromArray($dataPoint);
                $this->points[] = $point;
            }
        }
    }
public function fromArray($data)
    {
        $this->points = [];
        if (is_array($data)) {
            foreach ($data as $dataPoint) {
                $point = new TimePoint();
                $point->fromArray($dataPoint);
                $this->points[] = $point;
            }
        }
    }
Imports the internal state from an array
@param array $data