protected function getWorkDuration(Log $logA, Log $logB) { return $logA->getTime()->diff($logB->getTime()); }
public function getLogDateArray(Log $log) { return ['employee' => $log->getEmployee()->getId(), 'year' => $log->getTime()->format('Y'), 'month' => $log->getTime()->format('m'), 'day' => $log->getTime()->format('d')]; }