public function getMethods(): array
    {
        $methods = [];
        $reflection = new \ReflectionClass($this);

        foreach ($reflection->getMethods() as $method) {
            $identifier = $this->getMethodIdentifier($method);

            if (!\is_null($identifier)) {
                $methods[$identifier] = $method->getName();
            }
        }

        return $methods;
    }