romanpitak/Nginx-Config-Processor

View on GitHub
src/Printable.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

/**
 * This file is part of the Nginx Config Processor package.
 *
 * (c) Roman Piták <roman@pitak.net>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 */

namespace RomanPitak\Nginx\Config;

abstract class Printable
{
    abstract public function prettyPrint($indentLevel, $spacesPerIndent = 4);

    public function __toString()
    {
        return $this->prettyPrint(0);
    }
}