![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/Ecombricks/InventoryConfig/Model/Config/Structure/Element/Group/ |
<?php /** * Copyright © eComBricks. All rights reserved. * See LICENSE.txt for license details. */ namespace Ecombricks\InventoryConfig\Model\Config\Structure\Element\Group; /** * Config structure group element proxy model */ class Proxy extends \Magento\Config\Model\Config\Structure\Element\Group\Proxy { /** * Source code * * @var string */ protected $sourceCode; /** * Set subject source code * * @return $this */ protected function setSubjectSourceCode() { $this->_getSubject()->setSourceCode($this->sourceCode); return $this; } /** * Set source code * * @param string $sourceCode * @return $this */ public function setSourceCode($sourceCode) { $this->sourceCode = $sourceCode; return $this; } /** * Get source code * * @return int */ public function getSourceCode() { return $this->sourceCode; } /** * Check if is enabled for source * * @return bool */ public function isEnabledForSource() { $this->setSubjectSourceCode(); return $this->_getSubject()->isEnabledForSource(); } /** * Check if is enabled for source only * * @return bool */ public function isEnabledForSourceOnly() { $this->setSubjectSourceCode(); return $this->_getSubject()->isEnabledForSourceOnly(); } }