Current File : /home/bqrcodec/contact.fpt.auto/wp-content/plugins/wp-all-export-pro/src/App/Field//Adult.php
<?php
namespace Wpae\App\Field;
class Adult extends Field
{
const SECTION = 'advancedAttributes';
public function getValue($snippetData)
{
$advancedAttributes = $this->feed->getSectionFeedData(self::SECTION);
if($advancedAttributes['adult'] === self::CUSTOM_VALUE_TEXT) {
return $this->replaceSnippetsInValue($advancedAttributes['adultCV'], $snippetData);
} else {
return $advancedAttributes['adult'];
}
}
public function getFieldName()
{
return 'adult';
}
}