Files
kupshop/bundles/KupShop/FeedsBundle/FeedVariation.php
2025-08-02 16:30:27 +02:00

41 lines
800 B
PHP

<?php
namespace KupShop\FeedsBundle;
class FeedVariation extends \Variation
{
public $product_code;
public $max_cpc;
public $fp_title;
public $fp_cpc;
public $fp_id_section;
/**
* Fetches data from given array.
*
* @param array $data
*
* @return bool
*/
public function createFromArray($data)
{
parent::createFromArray($data);
$this->product_code = $data['product_code'];
$this->max_cpc = $data['max_cpc'];
$this->fp_title = $data['fp_title'];
$this->fp_cpc = $data['fp_cpc'];
$this->fp_id_section = $data['fp_id_section'];
return true;
}
/**
* @return array|mixed
*/
public function getVariationData()
{
return $this->variationData;
}
}