Skip to content

Instantly share code, notes, and snippets.

@AimForNaN
Last active December 19, 2020 02:45
Show Gist options
  • Save AimForNaN/c9b7d45d0a15dbea33bddb0f47e9d3a2 to your computer and use it in GitHub Desktop.
Save AimForNaN/c9b7d45d0a15dbea33bddb0f47e9d3a2 to your computer and use it in GitHub Desktop.
The doctrine of the trinity visualized in PHP.
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