public function write()
    {
        foreach ($this->parameters as $prop => $value) {
            $placeHolders[] = sprintf('<%s>', $prop);
            $replacements[] = $value;
        }

        $content = str_replace($placeHolders, $replacements, self::$template);

        fwrite($this->file, $this->addHeaders($content));
    }
public function write()
    {
        foreach ($this->parameters as $prop => $value) {
            $placeHolders[] = sprintf('<%s>', $prop);
            $replacements[] = $value;
        }

        $content = str_replace($placeHolders, $replacements, self::$template);

        fwrite($this->file, $this->addHeaders($content));
    }
public function write ( ) { foreach ( $ this -> parameters as $ prop => $ value ) { $ placeHolders [ ] = sprintf ( '<%s>' , $ prop ) ; $ replacements [ ] = $ value ; } $ content = str_replace ( $ placeHolders , $ replacements , self :: $ template ) ; fwrite ( $ this -> file , $ this -> addHeaders ( $ content ) ) ; }
Write staging in file.

@param string $staging Generated staging
Write staging in file .