ClassUtil
in package
Table of Contents
Methods
- classImplementsTrait() : bool
- Return true if the given class or a parent class implements the given trait
Methods
classImplementsTrait()
Return true if the given class or a parent class implements the given trait
public
classImplementsTrait(object|string $class, string $trait) : bool
Parameters
- $class : object|string
- $trait : string