【magento2.1源码分析】数据配置接口 DataInterface.php

<?php
/**
 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Framework\App\Config;

/**
 * 数据接口
 */
interface DataInterface
{
    /**
     * 通过路径获取值
     *
     * @param string|null $path
     * @return mixed
     */
    public function getValue($path);

    /**
     * 通过路径设置值
     *
     * @param string $path
     * @param mixed $value
     * @return void
     */
    public function setValue($path, $value);
}

猜你喜欢

转载自blog.csdn.net/qq2942713658/article/details/81225896