server/src/app/Models/DocumentResult.php
changeset 319 78990a8a069b
parent 275 a4d8618c2f1b
equal deleted inserted replaced
318:5564f5065f81 319:78990a8a069b
    83 
    83 
    84         $res = parent::jsonSerialize();
    84         $res = parent::jsonSerialize();
    85 
    85 
    86         if($this->graph) {
    86         if($this->graph) {
    87             $res = array_merge($res, [
    87             $res = array_merge($res, [
    88                 'publishers' => $this->getPublishersValue(),
    88                 'publisher' => $this->getPublishersValue(),
    89                 'duration' => $this->getDurationValue(),
    89                 'duration_ms' => $this->getDurationValue(),
    90                 'transcript_url' => $this->getTranscriptUrl()
    90                 'transcript_url' => $this->getTranscriptUrl()
    91             ]);
    91             ]);
    92         }
    92         }
    93         return $res;
    93         return $res;
    94     }
    94     }