You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							23 lines
						
					
					
						
							388 B
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							23 lines
						
					
					
						
							388 B
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								namespace App\Service;
							 | 
						|
								
							 | 
						|
								
							 | 
						|
								use App\Common\StatementType;
							 | 
						|
								use App\Models\Statement;
							 | 
						|
								use App\Traits\DemandTraits;
							 | 
						|
								
							 | 
						|
								class WithdrawalService
							 | 
						|
								{
							 | 
						|
									public function create($price,$type,$userId,$userType,$orderId = '')
							 | 
						|
									{
							 | 
						|
										Statement::query()->create([
							 | 
						|
											'price' => $price,
							 | 
						|
											'type' => $type,
							 | 
						|
											'user_id' => $userId,
							 | 
						|
											'user_type' => $userType,
							 | 
						|
											'order_id' => $orderId ?? ''
							 | 
						|
										]);
							 | 
						|
									}
							 | 
						|
								}
							 |