Created
March 3, 2014 02:30
-
-
Save TomHAnderson/9317502 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 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