from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search

As of 2023-04-14 the official documentation says «This function is currently not documented; only its argument list is available.», so we have to kind of reverse-engineer how it actually behaves.

Trait Objects

Tentatively, a trait used by another trait is not counted as a "parent class"; you have to look at $oTrait->getTraits(). This makes sense since getParentClass() returns only one item, whereas a trait may use more than one "parent" trait.