Skip to content

Instantly share code, notes, and snippets.

@igorw
Created November 22, 2013 10:43
Show Gist options
  • Save igorw/7597974 to your computer and use it in GitHub Desktop.
Save igorw/7597974 to your computer and use it in GitHub Desktop.
<?php
const StateManager = '';
const State = '';
const HARMFUL = 'harmful';
function getConsiderationSetter($subject, $state) {
global $consideration;
$consideration = "$subject considered $state";
}
function run() {
global $consideration;
echo "$consideration\n";
}
StateManager.getConsiderationSetter("Noun Oriented Thinking", State.HARMFUL).run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment