Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (16 sloc) 0.48 kb
<?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;
}
}
}
Jump to Line
Something went wrong with that request. Please try again.