File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff 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 ////////////////////////////////////////////////////////////////
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments