Вход Регистрация
Файл: vendor/php-ffmpeg/php-ffmpeg/src/Alchemy/BinaryDriver/ConfigurationInterface.php
Строк: 53
<?php

/*
 * This file is part of AlchemyBinaryDriver.
 *
 * (c) Alchemy <info@alchemy.fr>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace AlchemyBinaryDriver;

interface 
ConfigurationInterface extends ArrayAccessIteratorAggregate
{
    
/**
     * Returns the value given a key from configuration
     *
     * @param string $key
     * @param mixed  $default The default value in case the key does not exist
     *
     * @return mixed
     */
    
public function get($key$default null);

    
/**
     * Set a value to configuration
     *
     * @param string $key   The key
     * @param mixed  $value The value corresponding to the key
     */
    
public function set($key$value);

    
/**
     * Tells if Configuration contains `$key`
     *
     * @param string $key
     *
     * @return Boolean
     */
    
public function has($key);

    
/**
     * Removes a value given a key
     *
     * @param string $key
     *
     * @return mixed The previous value
     */
    
public function remove($key);

    
/**
     * Returns all values set in the configuration
     *
     * @return array
     */
    
public function all();
}
Онлайн: 1
Реклама