ModCfg/Application/Model/Parametercontainer/d3ParameterContainerInterface.php

66 lines
1.7 KiB
PHP
Raw Normal View History

2024-04-19 16:15:46 +02:00
<?php
2024-09-02 08:48:43 +02:00
2024-04-19 16:15:46 +02:00
/**
2024-09-02 08:48:43 +02:00
* Copyright (c) D3 Data Development (Inh. Thomas Dartsch)
2024-04-19 16:15:46 +02:00
*
2024-09-02 08:48:43 +02:00
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
2024-04-19 16:15:46 +02:00
*
* https://www.d3data.de
*
2024-09-02 08:48:43 +02:00
* @copyright (C) D3 Data Development (Inh. Thomas Dartsch)
* @author D3 Data Development - Daniel Seifert <info@shopmodule.com>
* @link https://www.oxidmodule.com
2024-04-19 16:15:46 +02:00
*/
namespace D3\ModCfg\Application\Model\Parametercontainer;
use D3\ModCfg\Application\Model\Exception\d3ParameterNotFoundException;
interface d3ParameterContainerInterface
{
/**
* Clears all parameters.
*/
public function clear();
/**
* Adds parameters to the service container parameters.
* @param array $aParameters An array of parameters
*/
public function add(array $aParameters);
/**
* Gets the service container parameters.
* @return array An array of parameters
*/
public function all();
/**
* Gets a container parameter.
* @param string $sName The parameter name
* @return mixed The parameter value
* @throws d3ParameterNotFoundException if the parameter is not defined
*/
public function get($sName);
/**
* Sets a service container parameter.
* @param string $sName The parameter name
* @param mixed $mValue The parameter value
*/
public function set($sName, $mValue);
/**
* Returns true if a parameter name is defined.
* @param string $sName The parameter name
* @return Boolean true if the parameter name is defined, false otherwise
*/
public function has($sName);
/**
* @param $sName
*/
public function remove($sName);
}