Skip to content

Commit a76a86f

Browse files
Merge remote-tracking branch '39199/phpdoc/scopeConfig' into commprs_dec
2 parents 25c764e + d435d88 commit a76a86f

File tree

2 files changed

+10
-22
lines changed

2 files changed

+10
-22
lines changed

lib/internal/Magento/Framework/App/Config.php

+5-15
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
/**
3-
*
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
3+
* Copyright 2013 Adobe
4+
* All Rights Reserved.
65
*/
6+
77
namespace Magento\Framework\App;
88

99
use Magento\Framework\App\Config\ConfigTypeInterface;
@@ -45,12 +45,7 @@ public function __construct(
4545
}
4646

4747
/**
48-
* Retrieve config value by path and scope
49-
*
50-
* @param string $path
51-
* @param string $scope
52-
* @param null|int|string $scopeCode
53-
* @return mixed
48+
* @inheritDoc
5449
*/
5550
public function getValue(
5651
$path = null,
@@ -80,12 +75,7 @@ public function getValue(
8075
}
8176

8277
/**
83-
* Retrieve config flag
84-
*
85-
* @param string $path
86-
* @param string $scope
87-
* @param null|int|string $scopeCode
88-
* @return bool
78+
* @inheritDoc
8979
*/
9080
public function isSetFlag($path, $scope = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode = null)
9181
{

lib/internal/Magento/Framework/App/Config/ScopeConfigInterface.php

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<?php
22
/**
3-
* Configuration interface
4-
*
5-
* Copyright © Magento, Inc. All rights reserved.
6-
* See COPYING.txt for license details.
3+
* Copyright 2011 Adobe
4+
* All Rights Reserved.
75
*/
86

97
namespace Magento\Framework\App\Config;
@@ -17,14 +15,14 @@ interface ScopeConfigInterface
1715
/**
1816
* Default scope type
1917
*/
20-
const SCOPE_TYPE_DEFAULT = 'default';
18+
public const SCOPE_TYPE_DEFAULT = 'default';
2119

2220
/**
2321
* Retrieve config value by path and scope.
2422
*
2523
* @param string $path The path through the tree of configuration values, e.g., 'general/store_information/name'
2624
* @param string $scopeType The scope to use to determine config value, e.g., 'store' or 'default'
27-
* @param null|int|string $scopeCode
25+
* @param null|int|string|\Magento\Framework\App\ScopeInterface $scopeCode
2826
* @return mixed
2927
*/
3028
public function getValue($path, $scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode = null);
@@ -34,7 +32,7 @@ public function getValue($path, $scopeType = ScopeConfigInterface::SCOPE_TYPE_DE
3432
*
3533
* @param string $path The path through the tree of configuration values, e.g., 'general/store_information/name'
3634
* @param string $scopeType The scope to use to determine config value, e.g., 'store' or 'default'
37-
* @param null|int|string $scopeCode
35+
* @param null|int|string|\Magento\Framework\App\ScopeInterface $scopeCode
3836
* @return bool
3937
*/
4038
public function isSetFlag($path, $scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT, $scopeCode = null);

0 commit comments

Comments
 (0)