public static function getYamlContents(string $filename)
    {
        $result = null;
        if (file_exists($filename)) {
            $result = Yaml::parse(file_get_contents($filename));
        }
        return $result;
    }
public static function getYamlContents(string $filename)
    {
        $result = null;
        if (file_exists($filename)) {
            $result = Yaml::parse(file_get_contents($filename));
        }
        return $result;
    }
public static function getYamlContents ( string $ filename ) { $ result = null ; if ( file_exists ( $ filename ) ) { $ result = Yaml :: parse ( file_get_contents ( $ filename ) ) ; } return $ result ; }
get yaml file data as array
@param  string $filename source file name
@return array|null
get yaml file data as array