public function getListeners(string ...$classes): array
    {
        $annotations = [];

        // Iterate through all the classes
        foreach ($classes as $class) {
            $listeners = $this->methodsAnnotationsType('Listener', $class);

            // Get all the annotations for each class and iterate through them
            /** @var \Valkyrja\Events\Annotations\Listener $annotation */
            foreach ($listeners as $annotation) {
                $this->setListenerProperties($annotation);
                // Set the annotation in the annotations list
                $annotations[] = $this->getListenerFromAnnotation($annotation);
            }
        }

        return $annotations;
    }