<?php  namespace App\Models;  use App\Traits\Countries; use Illuminate\Database\Eloquent\Builder;  /**  * @property string $oib  * @property string|null $invoice_country  */ class Address extends Model { 	use Countries;  	public const DELIVERY_ADDRESS = 1; 	public const INVOICE_ADDRESS = 2;  	protected $casts = [ 		'type' => 'integer', 	];  	public function scopeDelivery(Builder $query): Builder{}  	public function scopeInvoice(Builder $query): Builder{}  	public static function getTypes(): array 	{ 		return [ 			self::DELIVERY_ADDRESS, 			self::INVOICE_ADDRESS, 		]; 	}  	public static function getTypeName(int $type): string 	{ 		$address_types = [ 			self::DELIVERY_ADDRESS => __('addresses.type-delivery'), 			self::INVOICE_ADDRESS => __('addresses.type-invoice'), 		];  		return $address_types[$type]; 	}  	public function tempAddressCreate(?string $name, ?string $street, ?string $city, ?string $zip_code, ?string $country_code, ?string $oib = null, ?string $invoice_country = null): void{} }