Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
StockConfiguration.php
Go to the documentation of this file.
1 <?php
7 
10 
15 {
20 
25  {
26  $this->stockConfiguration = $stockConfiguration;
27  }
28 
32  public function getValue($name)
33  {
34  $value= $this->stockConfiguration->getDefaultConfigValue($name);
35  return is_numeric($value) ? (float)$value : $value;
36  }
37 }
$value
Definition: gender.phtml:16
__construct(StockConfigurationInterface $stockConfiguration)
if(!isset($_GET['name'])) $name
Definition: log.php:14