Skip to content

Instantly share code, notes, and snippets.

@TomHAnderson
Created March 3, 2014 02:30
Show Gist options
  • Save TomHAnderson/9317502 to your computer and use it in GitHub Desktop.
Save TomHAnderson/9317502 to your computer and use it in GitHub Desktop.
// This function cannot return an accurate answer
function isAllyByCrosscheckIdenties($person)
{
// If this person identifies as any of the following
// make assumption they support equal rights for everyone
foreach ($person->getSexualIdentities() as $identity) {
switch ($identity) {
case 'gay':
case 'lesbian':
case 'bisexual':
case 'trangender':
case 'pansexual':
case 'intersex':
case 'asexual':
// The following is untrue because an assumption
// would need to be made that the person
// supports equal rights for everyone
return true;
default:
break;
}
return null;
}
}
// This function is the statement made and is independent of
// the crosscheck function
function isAlly($person) {
return $person->getSupportsEqualRightsForEveryone();
}
// Crosschecking perspectives is a misnomer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment