Skip to content

v0.1.6

Compare
Choose a tag to compare
@kylemilloy kylemilloy released this 19 Feb 16:14

Adds ability for attribute setters to take a callback. Ex:

$eventIsNow = true;

NowCal::create()
    ->start(function() use ($eventIsNow) {
        if ($eventIsNow) {
            return 'now';
        } else {
            return 'tomorrow';
        }
    });