41 lines
800 B
PHP
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;
|
|
}
|
|
}
|