public function getPartnerSettings($partner_id) { if ($this->partners_settings === null && !$this->fetched(self::FETCH_PARTNER)) { $settings = $this->getProfileField(self::FETCH_PARTNER); if ($settings) { $this->setPartnersSettings($settings); } } if ($this->partners_settings === null) { return PartnerSettings::getEmpty($partner_id); } return $this->partners_settings->get($partner_id); }
public function get($partner_id) { if (isset($this->partners_settings[$partner_id])) { return $this->partners_settings[$partner_id]; } else { return PartnerSettings::getEmpty($partner_id); } }