getExampleSource example

$method->getName(),
                    $method->getDeclaringClass()->getName(),
                    $example->getFilePath(),
                    implode('", "', array_keys($files))
                ));
            }

            $file = array_values($files)[0];

            $examples[] = [
                'description' => $example->getDescription(),
                'src' => $this->getExampleSource($file$example),
                'extension' => $file->getExtension(),
            ];
        }

        return $examples;
    }

    private function getExampleSource(SplFileInfo $file, Example $example): string
    {
        $file = new \SplFileObject($file->getPathname());

        
Home | Imprint | This part of the site doesn't use cookies.