_items = array(); foreach ($sourceArray['items'] as $paymentInfo) { $this->_items[] = new SbpParticipantBank($paymentInfo); } } /** * Возвращает type. * * @return string */ public function getType() { return $this->_type; } /** * Устанавливает type. * * @param string $type Формат выдачи результатов запроса. Возможное значение: `list` (список). * * @return $this */ public function setType($type) { $this->_type = $type; return $this; } /** * Возвращает items. * * @return SbpParticipantBank[]|array */ public function getItems() { return $this->_items; } }