Example #1
0
 /**
  * @param string $bankCode
  * @param string $city
  * @param string $name
  * @param string $zip
  * @param int $max
  * @return \Oneso\Ckonto\Webservice\Search\SearchResponse
  * @throws \Oneso\Ckonto\Webservice\Search\SearchException
  */
 private function createRequest($bankCode = '12345678', $city = 'Berlin', $name = '', $zip = '', $max = 0)
 {
     return \Oneso\Ckonto\Webservice\Search\SearchRequest::request(\Oneso\Ckonto\Webservice\Objects\BankCode::fromCode($bankCode), \Oneso\Ckonto\Webservice\Objects\Location::fromCity($city), \Oneso\Ckonto\Webservice\Objects\Name::fromName($name), \Oneso\Ckonto\Webservice\Objects\Zip::fromZip($zip), \Oneso\Ckonto\Webservice\Objects\Max::fromValue($max));
 }
Example #2
0
 /**
  * @return SearchResponse
  */
 public function search()
 {
     return SearchRequest::request($this->bankCode, $this->location, $this->name, $this->zip, $this->max);
 }