Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (16 sloc) 480 Bytes
<?php
class TrafficFeeCalculator {
public function __construct(){
}
public function getFee($overSpeed, $terrain) {
if($overSpeed <= 5 && $terrain == 'village') {
return 32;
}
if($overSpeed <= 5 && $terrain == 'land') {
return 29;
}
if($overSpeed <= 5 && $terrain == 'highway') {
return 28;
}
}
}