hasOne(SupplierSSL::class,'id','supplier_ssl_id'); } /* INTERFACES */ public function allowance(): Collection { // N/A return collect(); } public function allowance_string(): string { // N/A return ''; } public function getContractTermAttribute(): int { return 12; } public function getCostAttribute(): float { // N/A return 0; } public function getProductAttribute() { $o = new \stdClass(); $o->product_id = 'INT'; $o->setup_cost = 0; $o->base_cost = 0; $o->contract_term = 0; // @todo return $o; } public function getSupplierAttribute() { $o = new \stdClass(); $o->name = 'Internal'; return $o; } public function getTypeAttribute() { return 'SSL Certificate'; } public function hasUsage(): bool { return FALSE; } }