client = $client; $this->credit = $credit; } public function run() { if ($this->credit->number != '') { return $this->credit; } $this->credit->number = $this->getNextCreditNumber($this->client); return $this->credit; } }