33 lines
664 B
PHP
33 lines
664 B
PHP
<?php
|
|
|
|
namespace KupShop\FeedsBundle;
|
|
|
|
class FeedProduct extends \Product
|
|
{
|
|
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;
|
|
}
|
|
}
|