vendor/mondator/src/Mandango/Mondator/Definition.php
author cavaliet
Fri, 24 Jan 2014 17:50:24 +0100
changeset 106 c1477ecf55e3
parent 18 c85b9d1ddf19
permissions -rw-r--r--
too much copy paste

<?php

/*
 * This file is part of Mandango.
 *
 * (c) Pablo Díez <pablodip@gmail.com>
 *
 * This source file is subject to the MIT license that is bundled
 * with this source code in the file LICENSE.
 */

namespace Mandango\Mondator;

use Mandango\Mondator\Definition\Definition as BaseDefinition;

/**
 * Definitions to save with the extensions. Allows save the output.
 *
 * @author Pablo Díez <pablodip@gmail.com>
 *
 * @api
 */
class Definition extends BaseDefinition
{
    private $output;

    /**
     * Constructor.
     *
     * @param string                   $class  The class.
     * @param Mandango\Mondator\Output $output The output.
     *
     * @api
     */
    public function __construct($class, Output $output)
    {
        parent::__construct($class);

        $this->setOutput($output);
    }

    /**
     * Set the output.
     *
     * @param Mandango\Mondator\Output $output The output.
     *
     * @api
     */
    public function setOutput(Output $output)
    {
        $this->output = $output;
    }

    /**
     * Returns the output.
     *
     * @return Mandango\Mondator\Output The output.
     *
     * @api
     */
    public function getOutput()
    {
        return $this->output;
    }
}