company_key); return Company::where('company_key', $this->company_key)->first(); } public function getCompanyGateway() { return CompanyGateway::find($this->decodePrimaryKey($this->company_gateway_id)); } public function getPaymentHash() { return PaymentHash::where('hash', $this->hash)->first(); } public function getClient() { return Client::find($this->getPaymentHash()->data->client_id); } }