HH\Facts\methods_with_attribute

Get all methods matching the given filters

namespace HH\Facts;

function methods_with_attribute(
  classname<\HH\MethodAttribute> $attribute,
): vec<string, (classname<nonnull>, string)>;

Throws InvalidOperationException if Facts is not enabled.

Parameters

  • classname<\HH\MethodAttribute> $attribute

Returns

  • vec<string, (classname<nonnull>, string)>