src/Writer.php
public static function writeToJsonFile(SpecObjectInterface $object, string $fileName): void
    {
        file_put_contents($fileName, static::writeToJson($object));
    }
public static function writeToJsonFile(SpecObjectInterface $object, string $fileName): void
    {
        file_put_contents($fileName, static::writeToJson($object));
    }
public static function writeToJsonFile ( SpecObjectInterface $ object , string $ fileName ) : void { file_put_contents ( $ fileName , static :: writeToJson ( $ object ) ) ; }
Write OpenAPI spec object to JSON file.
@param SpecObjectInterface|OpenApi the OpenApi object instance.
@param string $fileName file name to write to.
Write OpenAPI spec object to JSON file .