mirror of
				https://github.com/kevinveenbirkenbach/infinito.git
				synced 2025-10-31 17:29:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			470 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			470 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| namespace App\Attribut;
 | |
| 
 | |
| /**
 | |
|  * @author kevinfrantz
 | |
|  */
 | |
| interface IdAttributInterface
 | |
| {
 | |
|     /**
 | |
|      * @param int $id
 | |
|      */
 | |
|     public function setId(int $id): void;
 | |
| 
 | |
|     /**
 | |
|      * Don't use this function to check if an id is set.
 | |
|      * Use instead:.
 | |
|      *
 | |
|      * @see self::hasId()
 | |
|      *
 | |
|      * @return int|null
 | |
|      */
 | |
|     public function getId(): ?int;
 | |
| 
 | |
|     /**
 | |
|      * @return bool Checks if attribute is set
 | |
|      */
 | |
|     public function hasId(): bool;
 | |
| }
 |