Verzeichnisstruktur phpBB-3.3.15


Veröffentlicht
28.08.2024

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

NodeInterface.php

Zuletzt modifiziert: 02.04.2025, 15:03 - Dateigröße: 2.50 KiB


001  <?php
002   
003  /*
004   * This file is part of the Symfony package.
005   *
006   * (c) Fabien Potencier <fabien@symfony.com>
007   *
008   * For the full copyright and license information, please view the LICENSE
009   * file that was distributed with this source code.
010   */
011   
012  namespace Symfony\Component\Config\Definition;
013   
014  use Symfony\Component\Config\Definition\Exception\ForbiddenOverwriteException;
015  use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
016  use Symfony\Component\Config\Definition\Exception\InvalidTypeException;
017   
018  /**
019   * Common Interface among all nodes.
020   *
021   * In most cases, it is better to inherit from BaseNode instead of implementing
022   * this interface yourself.
023   *
024   * @author Johannes M. Schmitt <schmittjoh@gmail.com>
025   */
026  interface NodeInterface
027  {
028      /**
029       * Returns the name of the node.
030       *
031       * @return string The name of the node
032       */
033      public function getName();
034   
035      /**
036       * Returns the path of the node.
037       *
038       * @return string The node path
039       */
040      public function getPath();
041   
042      /**
043       * Returns true when the node is required.
044       *
045       * @return bool If the node is required
046       */
047      public function isRequired();
048   
049      /**
050       * Returns true when the node has a default value.
051       *
052       * @return bool If the node has a default value
053       */
054      public function hasDefaultValue();
055   
056      /**
057       * Returns the default value of the node.
058       *
059       * @return mixed The default value
060       *
061       * @throws \RuntimeException if the node has no default value
062       */
063      public function getDefaultValue();
064   
065      /**
066       * Normalizes a value.
067       *
068       * @param mixed $value The value to normalize
069       *
070       * @return mixed The normalized value
071       *
072       * @throws InvalidTypeException if the value type is invalid
073       */
074      public function normalize($value);
075   
076      /**
077       * Merges two values together.
078       *
079       * @param mixed $leftSide
080       * @param mixed $rightSide
081       *
082       * @return mixed The merged value
083       *
084       * @throws ForbiddenOverwriteException if the configuration path cannot be overwritten
085       * @throws InvalidTypeException        if the value type is invalid
086       */
087      public function merge($leftSide, $rightSide);
088   
089      /**
090       * Finalizes a value.
091       *
092       * @param mixed $value The value to finalize
093       *
094       * @return mixed The finalized value
095       *
096       * @throws InvalidTypeException          if the value type is invalid
097       * @throws InvalidConfigurationException if the value is invalid configuration
098       */
099      public function finalize($value);
100  }
101