Skip to content

Commit ac365d1

Browse files
committed
thusfar
1 parent 74acaca commit ac365d1

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

src/Nether/Common/Datastore.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,6 +2113,15 @@ static public function
21132113
return $Store;
21142114
}
21152115

2116+
#[Meta\DateAdded('2025-08-08')]
2117+
#[Meta\Info('Check if this thing is of my kind.')]
2118+
static public function
2119+
IsInstanceOf(mixed $Thing):
2120+
bool {
2121+
2122+
return ($Thing instanceof static);
2123+
}
2124+
21162125
////////////////////////////////////////////////////////////////
21172126
////////////////////////////////////////////////////////////////
21182127
////////////////////////////////////////////////////////////////

src/Nether/Common/Values.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,15 @@ static public function
186186
return FALSE;
187187
}
188188

189+
#[Meta\Date('2025-08-08')]
190+
#[Meta\Info('I am beyond infurated that we do not have an !instanceof operator.')]
191+
static public function
192+
IsInstanceOf(mixed $Thing, string $Class):
193+
bool {
194+
195+
return ($Thing instanceof $Class);
196+
}
197+
189198
////////////////////////////////////////////////////////////////
190199
////////////////////////////////////////////////////////////////
191200

0 commit comments

Comments
 (0)