protected function methodsToArray(ReflectionObject $reflection)
    {
        $methods = $reflection->getMethods(ReflectionMethod::IS_PUBLIC);

        $data = [];

        foreach ($methods as $method) {
            if ($method->class !== __CLASS__ && substr($method->name, 0, 2) !== '__') {
                $data[$method->name] = $this->{$method->name}();
            }
        }

        return $data;
    }