mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 17:29:04 +00:00 
			
		
		
		
	Implemented Collection Attribut
This commit is contained in:
		
							
								
								
									
										29
									
								
								application/src/Entity/Attribut/CollectionAttribut.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								application/src/Entity/Attribut/CollectionAttribut.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Entity\Attribut; | ||||
|  | ||||
| use Doctrine\Common\Collections\Collection; | ||||
|  | ||||
| trait CollectionAttribut | ||||
| { | ||||
|     /** | ||||
|      * @var Collection | ||||
|      */ | ||||
|     protected $collection; | ||||
|  | ||||
|     /** | ||||
|      * @return Collection | ||||
|      */ | ||||
|     public function getCollection(): Collection | ||||
|     { | ||||
|         return $this->collection; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @param Collection $collection | ||||
|      */ | ||||
|     public function setCollection(Collection $collection): void | ||||
|     { | ||||
|         $this->collection = $collection; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,12 @@ | ||||
| <?php | ||||
|  | ||||
| namespace App\Entity\Attribut; | ||||
|  | ||||
| use Doctrine\Common\Collections\Collection; | ||||
|  | ||||
| interface CollectionAttributInterface | ||||
| { | ||||
|     public function getCollection(): Collection; | ||||
|  | ||||
|     public function setCollection(Collection $collection): void; | ||||
| } | ||||
		Reference in New Issue
	
	Block a user