/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
lib/internal/Magento/Framework/Model/ResourceModel/Entity/AbstractEntity.php
48 строк
934 B
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 17:47
22 окт 2025, 17:47
1b769b7
Код
Авторство
О чём код?
<?php /** * Copyright 2015 Adobe * All Rights Reserved. */ namespace Magento\Framework\Model\ResourceModel\Entity; abstract class AbstractEntity { /** * @var string */ protected $_name = null; /** * Configuration object * * @var \Magento\Framework\Simplexml\Config */ protected $_config = []; /** * Set config * * @param \Magento\Framework\Simplexml\Config $config */ public function __construct($config) { $this->_config = $config; } /** * Get config by key * * @param string $key * @return \Magento\Framework\Simplexml\Config|string|false */ public function getConfig($key = '') { if ('' === $key) { return $this->_config; } elseif (isset($this->_config->{$key})) { return $this->_config->{$key}; } else { return false; } } }