In PHP, the baseline class is stdClass
, and all further classes are children of that class, and it also is the default object returned in most cases where there is no other class defined.
My question is first if there is an equivalent system defined equivalent interface, like stdInterface
or something similar?
Secondly, is there a system defined generic trait? I would expect this to be less likely, but I wouldn't rule it out without some confirmation.
I am not aware of either such construct, and could not find any particular reference to either or even this question being asked before. It might be useful in some cases if one or both were available. Thanks in advance.
Edit: As pointed out by deceze and mentioned elsewhere also, stdClass
is not the root class, but is just a generic object.