_isScopePrivate = true; } /** * Sets the template * * @return void */ public function _construct() { parent::_construct(); $this->setTemplate('Magento_Customer::widget/taxvat.phtml'); } /** * Get is enabled. * * @return bool */ public function isEnabled() { return $this->_getAttribute('taxvat') ? (bool)$this->_getAttribute('taxvat')->isVisible() : false; } /** * Get is required. * * @return bool */ public function isRequired() { return $this->_getAttribute('taxvat') ? (bool)$this->_getAttribute('taxvat')->isRequired() : false; } /** * Retrieve store attribute label * * @param string $attributeCode * * @return string */ public function getStoreLabel($attributeCode) { $attribute = $this->_getAttribute($attributeCode); return $attribute ? __($attribute->getStoreLabel()) : ''; } }