function FileProfilerStorage::createProfileFromData

File

webprofiler/src/Profiler/FileProfilerStorage.php, line 13

Class

FileProfilerStorage

Namespace

Drupal\webprofiler\Profiler

Code

protected function createProfileFromData($token, $data, $parent = NULL) {
    $profile = new Profile($token);
    $profile->setIp($data['ip']);
    $profile->setMethod($data['method']);
    $profile->setUrl($data['url']);
    $profile->setTime($data['time']);
    $profile->setCollectors($data['data']);
    $profile->setStatusCode($data['status_code']);
    return $profile;
}