Apply PSR-12 code style (#3886)
[GitHub/WoltLab/WCF.git] / wcfsetup / install / files / lib / system / form / IFormElementContainer.class.php
index 8b51b9b62de6afba7211a1a5c57f6757a577a1b9..f6431627a68915d82c727a95d79e7fc5ccf338dd 100644 (file)
@@ -1,92 +1,94 @@
 <?php
+
 namespace wcf\system\form;
 
 /**
  * Interface for form element containers.
- * 
- * @author     Alexander Ebert
- * @copyright  2001-2019 WoltLab GmbH
- * @license    GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @package    WoltLabSuite\Core\System\Form
+ *
+ * @author  Alexander Ebert
+ * @copyright   2001-2019 WoltLab GmbH
+ * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
+ * @package WoltLabSuite\Core\System\Form
  */
-interface IFormElementContainer {
-       /**
-        * Returns form element container description.
-        * 
-        * @return      string
-        */
-       public function getDescription();
-       
-       /**
-        * Sets form element container description.
-        * 
-        * @param       string          $description
-        */
-       public function setDescription($description);
-       
-       /**
-        * Returns label.
-        * 
-        * @return      string
-        */
-       public function getLabel();
-       
-       /**
-        * Sets label.
-        * 
-        * @param       string          $label
-        */
-       public function setLabel($label);
-       
-       /**
-        * Returns the value of child element with given name.
-        * 
-        * @param       string          $key
-        * @return      mixed
-        */
-       public function getValue($key);
-       
-       /**
-        * Returns a list of child elements.
-        * 
-        * @return      IFormElement[]
-        */
-       public function getChildren();
-       
-       /**
-        * Appends a new child to stack.
-        * 
-        * @param       IFormElement    $element
-        */
-       public function appendChild(IFormElement $element);
-       
-       /**
-        * Prepends a new child to stack.
-        * 
-        * @param       IFormElement    $element
-        */
-       public function prependChild(IFormElement $element);
-       
-       /**
-        * Handles a POST or GET request.
-        * 
-        * @param       array           $variables
-        */
-       public function handleRequest(array $variables);
-       
-       /**
-        * Returns HTML-representation of current form element container.
-        * 
-        * @param       string          $formName
-        * @return      string
-        */
-       public function getHTML($formName);
-       
-       /**
-        * Sets localized error message for named element.
-        * 
-        * @param       string          $name
-        * @param       string          $error
-        */
-       public function setError($name, $error);
+interface IFormElementContainer
+{
+    /**
+     * Returns form element container description.
+     *
+     * @return  string
+     */
+    public function getDescription();
+
+    /**
+     * Sets form element container description.
+     *
+     * @param string $description
+     */
+    public function setDescription($description);
+
+    /**
+     * Returns label.
+     *
+     * @return  string
+     */
+    public function getLabel();
+
+    /**
+     * Sets label.
+     *
+     * @param string $label
+     */
+    public function setLabel($label);
+
+    /**
+     * Returns the value of child element with given name.
+     *
+     * @param string $key
+     * @return  mixed
+     */
+    public function getValue($key);
+
+    /**
+     * Returns a list of child elements.
+     *
+     * @return  IFormElement[]
+     */
+    public function getChildren();
+
+    /**
+     * Appends a new child to stack.
+     *
+     * @param IFormElement $element
+     */
+    public function appendChild(IFormElement $element);
+
+    /**
+     * Prepends a new child to stack.
+     *
+     * @param IFormElement $element
+     */
+    public function prependChild(IFormElement $element);
+
+    /**
+     * Handles a POST or GET request.
+     *
+     * @param array $variables
+     */
+    public function handleRequest(array $variables);
+
+    /**
+     * Returns HTML-representation of current form element container.
+     *
+     * @param string $formName
+     * @return  string
+     */
+    public function getHTML($formName);
+
+    /**
+     * Sets localized error message for named element.
+     *
+     * @param string $name
+     * @param string $error
+     */
+    public function setError($name, $error);
 }