src/Valkyrja/Annotations/NativeAnnotations.php
public function classMembersAnnotations(string $class): array
    {
        $index = static::CLASS_MEMBERS_CACHE . $class;

        if (isset(self::$annotations[$index])) {
            return self::$annotations[$index];
        }

        return self::$annotations[$index] = array_merge(
            $this->propertiesAnnotations($class),
            $this->methodsAnnotations($class)
        );
    }
public function classMembersAnnotations(string $class): array
    {
        $index = static::CLASS_MEMBERS_CACHE . $class;

        if (isset(self::$annotations[$index])) {
            return self::$annotations[$index];
        }

        return self::$annotations[$index] = array_merge(
            $this->propertiesAnnotations($class),
            $this->methodsAnnotations($class)
        );
    }
Get a class's members' annotations.

@param string $class The class

@throws \ReflectionException

@return \Valkyrja\Annotations\Annotation[]