mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 10:47:00 +00:00 
			
		
		
		
	Remapped all library classes.
This commit is contained in:
		
							
								
								
									
										47
									
								
								app/lib/FireflyIII/Database/CUD.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										47
									
								
								app/lib/FireflyIII/Database/CUD.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,47 @@ | ||||
| <?php | ||||
|  | ||||
| namespace FireflyIII\Database; | ||||
|  | ||||
|  | ||||
|  | ||||
| /** | ||||
|  * Interface CUD | ||||
|  * | ||||
|  * @package FireflyIII\Database | ||||
|  */ | ||||
| interface CUD | ||||
| { | ||||
|  | ||||
|     /** | ||||
|      * @param \Eloquent $model | ||||
|      * | ||||
|      * @return bool | ||||
|      */ | ||||
|     public function destroy(\Eloquent $model); | ||||
|  | ||||
|     /** | ||||
|      * @param array $data | ||||
|      * | ||||
|      * @return \Eloquent | ||||
|      */ | ||||
|     public function store(array $data); | ||||
|  | ||||
|     /** | ||||
|      * @param \Eloquent $model | ||||
|      * @param array  $data | ||||
|      * | ||||
|      * @return bool | ||||
|      */ | ||||
|     public function update(\Eloquent $model, array $data); | ||||
|  | ||||
|     /** | ||||
|      * Validates an array. Returns an array containing MessageBags | ||||
|      * errors/warnings/successes. | ||||
|      * | ||||
|      * @param array $model | ||||
|      * | ||||
|      * @return array | ||||
|      */ | ||||
|     public function validate(array $model); | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user