ReflectionMethod::getModifiers

( excerpt from http://php.net/manual/en/reflectionmethod.getmodifiers.php )

public function getModifiers(): int;

Returns a bitfield of the access modifiers for this method.

Returns

  • int - A numeric representation of the modifiers. The modifiers are listed below. The actual meanings of these modifiers are described in the predefined constants.