<commit_before><?php
/**
 * Phossa Project
 *
 * PHP version 5.4
 *
 * @category  Library
 * @package   Phossa2\Config
 * @copyright Copyright (c) 2016 phossa.com
 * @license   http://mit-license.org/ MIT License
 * @link      http://www.phossa.com/
 */
/*# declare(strict_types=1); */

namespace Phossa2\Config\Interfaces;

/**
 * WritableInterface
 *
 * @package Phossa2\Config
 * @author  <NAME> <<EMAIL>>
 * @version 2.0.0
 * @since   2.0.0 added
 */
interface WritableInterface
{
    /**
     * Set configuration
     *
     * @param  string $key configuration key
     * @param  mixed values
     * @return $this
     * @throws LogicException if error type is to throw exception
     * @access public
     * @api
     */
    public function set(/*# string */ $key, $value);

    /**
     * Is writable ?
     *
     * @return bool
     * @access public
     * @api
     */
    public function isWritable()/*# : bool */;

    /**
     * Set to false or the writer object
     *
     * @param  mixed|false $writable
     * @return $this<commit_msg>typo fix<commit_after><?php
/**
 * Phossa Project
 *
 * PHP version 5.4
 *
 * @category  Library
 * @package   Phossa2\Config
 * @copyright Copyright (c) 2016 phossa.com
 * @license   http://mit-license.org/ MIT License
 * @link      http://www.phossa.com/
 */
/*# declare(strict_types=1); */

namespace Phossa2\Config\Interfaces;

/**
 * WritableInterface
 *
 * @package Phossa2\Config
 * @author  <NAME> <<EMAIL>>
 * @version 2.0.0
 * @since   2.0.0 added
 */
interface WritableInterface
{
    /**
     * Set configuration
     *
     * @param  string $key configuration key
     * @param  mixed value
     * @return $this
     * @throws LogicException if error type is to throw exception
     * @access public
     * @api
     */
    public function set(/*# string */ $key, $value);

    /**
     * Is writable ?
     *
     * @return bool
     * @access public
     * @api
     */
    public function isWritable()/*# : bool */;

    /**
     * Set to false or the writer object
     *
     * @param  mixed|false $writable
     * @return $this
{'fraction_non_alphanumeric': 0.14013346043851288, 'fraction_numerical': 0.015252621544327931, 'mean_word_length': 2.229230769230769, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5521300', 'n_tokens_mistral': 701, 'n_tokens_neox': 672, 'n_words': 180}