Last active
December 19, 2020 02:45
-
-
Save AimForNaN/c9b7d45d0a15dbea33bddb0f47e9d3a2 to your computer and use it in GitHub Desktop.
The doctrine of the trinity visualized in PHP.
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
abstract class God { | |
protected bool $AllKnowing = true; | |
protected bool $Almighty = true; | |
protected bool $AllWise = true; | |
protected bool $Creator = true; | |
protected bool $Eternal = true; | |
protected bool $Immutable = true; // Unchanging! | |
protected bool $Omnipresent = true; | |
abstract public function role(); | |
} | |
class Father extends God { | |
public function role() { | |
// ... | |
} | |
} | |
class Son extends God { | |
public function role() { | |
// ... | |
} | |
} | |
class HolySpirit extends God { | |
public function role() { | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment