/** * @param \ebussola\ads\reports\facebook\AdGroupStats $stats */ public function merge(\ebussola\ads\reports\Stats $stats) { $this->object_id = $this->object_id . ' + ' . $stats->object_id; $this->name = $this->name . ' + ' . $stats->name; $this->comment = $this->comment + $stats->comment; $this->like = $this->like + $stats->like; $this->link_click = $this->link_click + $stats->link_click; $this->photo_view = $this->photo_view + $stats->photo_view; $this->post = $this->post + $stats->post; $this->post_like = $this->post_like + $stats->post_like; $this->video_play = $this->video_play + $stats->video_play; $this->video_view = $this->video_view + $stats->video_view; parent::merge($stats); }
/** * @param \ebussola\ads\reports\facebook\CampaignStats $stats * * @return \ebussola\ads\reports\facebook\CampaignStats */ public function merge(\ebussola\ads\reports\Stats $stats) { $this->object_id = $this->object_id . ' + ' . $stats->object_id; $this->name = $this->name . ' + ' . $stats->name; parent::merge($stats); }