forked from joomla/Component-Builder
79 lines
1.9 KiB
PHP
79 lines
1.9 KiB
PHP
<?php
|
|
/**
|
|
* @package Joomla.Component.Builder
|
|
*
|
|
* @created 4th September, 2022
|
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
*/
|
|
|
|
namespace VDM\Joomla\Componentbuilder\Interfaces;
|
|
|
|
|
|
/**
|
|
* The Double Mapper Interface
|
|
*/
|
|
interface Mapperdoubleinterface
|
|
{
|
|
/**
|
|
* Set dynamic content
|
|
*
|
|
* @param string $firstKey The first key
|
|
* @param string $secondKey The second key
|
|
* @param mixed $value The values to set
|
|
*
|
|
* @return void
|
|
* @since 3.2.0
|
|
*/
|
|
public function set_(string $firstKey, string $secondKey, $value);
|
|
|
|
/**
|
|
* Get dynamic content
|
|
*
|
|
* @param string $firstKey The first key
|
|
* @param string $secondKey The second key
|
|
*
|
|
* @return mixed
|
|
* @since 3.2.0
|
|
*/
|
|
public function get_(string $firstKey, ?string $secondKey = null);
|
|
|
|
/**
|
|
* Does keys exist
|
|
*
|
|
* @param string $firstKey The first key
|
|
* @param string|null $secondKey The second key
|
|
*
|
|
* @return bool
|
|
* @since 3.2.0
|
|
*/
|
|
public function exist_(string $firstKey, ?string $secondKey = null): bool;
|
|
|
|
/**
|
|
* Add dynamic content
|
|
*
|
|
* @param string $firstKey The first key
|
|
* @param string $secondKey The second key
|
|
* @param mixed $value The values to set
|
|
*
|
|
* @return void
|
|
* @since 3.2.0
|
|
*/
|
|
public function add_(string $firstKey, string $secondKey, $value);
|
|
|
|
/**
|
|
* Remove dynamic content
|
|
*
|
|
* @param string $firstKey The first key
|
|
* @param string|null $secondKey The second key
|
|
*
|
|
* @return void
|
|
* @since 3.2.0
|
|
*/
|
|
public function remove_(string $firstKey, ?string $secondKey = null);
|
|
|
|
}
|
|
|