gdbots/pbjc-php

View on GitHub
src/Util/OutputFile.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace Gdbots\Pbjc\Util;

class OutputFile
{
    /** @var string */
    protected $file;

    /** @var string */
    protected $contents;

    /**
     * @param string $file     The file name
     * @param string $contents The file content
     */
    public function __construct($file, $contents)
    {
        $this->file = $file;
        $this->contents = $contents;
    }

    /**
     * Returns the file name.
     *
     * @return string the file name
     */
    public function getFile()
    {
        return $this->file;
    }

    /**
     * Returns the contents of the file.
     *
     * @return string the contents of the file
     */
    public function getContents()
    {
        return $this->contents;
    }
}