Skip to content

Instantly share code, notes, and snippets.

@zimzat
zimzat / paydate_calculator.class
Created July 3, 2013 19:36
Part of a code challenge for a job application in 2007 was to create a pay date calculator. Presented here is the exact code created for it over 6 years ago. Needless to say some of my coding practices and styles have further developed since that time, such as placing the trailing parenthesis on a separate line, using lowerCamelCase for variable…
<?php
class Paydate_Calculator {
/**
* Indicate if we're going forward (1) or backward (-1) when we make our adjustments.
* @var int
*/
private $due_date_adjustment = 1;
/**