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