This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Pattern Specification | |
// | |
// In the following example, we are retrieving invoices and sending them to a collection agency if | |
// 1. they are overdue, | |
// 2. notices have been sent, and | |
// 3. they are not already with the collection agency. | |
// This example is meant to show the end result of how the logic is 'chained' together. | |
// | |
// This usage example assumes a previously defined OverdueSpecification class | |
// that is satisfied when an invoice's due date is 30 days or older, |