ReflectionClass::isTrait

Returns whether this is a trait

Description

public bool ReflectionClass::isTrait()

Check whether this ReflectionClass refers to a trait.

Parameters

This function has no parameters.

Return Values

Returns true if this is a trait, false otherwise.