vendor/mondator/src/Mandango/Mondator/Definition.php
changeset 18 c85b9d1ddf19
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/mondator/src/Mandango/Mondator/Definition.php	Thu Oct 27 05:47:14 2011 +0200
@@ -0,0 +1,65 @@
+<?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;
+    }
+}