source = $source; $this->order_id = $order_id; } /** * @return int */ public function getOrderId() { return $this->order_id; } /** * @param string $source * @return boolean */ public function isCurrentSource(string $source): bool { return $this->source == $source; } /** * @param ListData $obj * @param Object|array $ads_item * @param array $item * @return array */ protected function getItem(ListData $obj, $ads_item, $item) { $express_log = is_object($ads_item) ? $ads_item->toArray() : ($ads_item === false ? $this->getDefaultValue($obj) : $ads_item); $item['express_log'] = $express_log['list']['Traces'] ?? []; return $item; } }