* use php-cs-fixer instead of phpcodesniffer * updated scrutinizer config * adjusted code yules to all files * updated CONTRIBUTING guidelines
28 lines
667 B
PHP
28 lines
667 B
PHP
<?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);
|
|
}
|