File: //proc/1526/task/1529/cwd/shoetique/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 $advancedAttributes['adultCV'];
} else {
return $advancedAttributes['adult'];
}
}
public function getFieldName()
{
return 'adult';
}
}