server/src/app/Models/DocumentResult.php
changeset 339 766af1228b05
parent 319 78990a8a069b
equal deleted inserted replaced
338:4a3899b6a7ed 339:766af1228b05
    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     }