Edit file File name : CalculatorInterface.php Content :<?php /* * This file is part of the Kimai time-tracking app. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace App\Timesheet; use App\Entity\Timesheet; /** * A calculator is called before a Timesheet entity will be updated. * These classes will normally be used when calculating duration or rates. */ interface CalculatorInterface { /** * All necessary changes need to be applied on the given $record. * The methods return value will not be evaluated. * * @param Timesheet $record */ public function calculate(Timesheet $record); } Save