← All docs

class_implements()

Returns the interfaces which are implemented by the given class or its parents.

class_implements()

function class_implements(mixed $object_or_class, bool $autoload = true): mixed

Returns the interfaces which are implemented by the given class or its parents.

Parameters:

  • $object_or_class (mixed)
  • $autoload (bool), default true, optional

Returns: mixed

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how class_implements is implemented in the compiler, see the internals page.