basic website, basic templating
This commit is contained in:
		
							
								
								
									
										16
									
								
								src/Entity/AddressBookEntry.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								src/Entity/AddressBookEntry.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace App\Entity;
 | 
			
		||||
 | 
			
		||||
class AddressBookEntry
 | 
			
		||||
{
 | 
			
		||||
    public function __construct(
 | 
			
		||||
        private int $userid,
 | 
			
		||||
        private string $first,
 | 
			
		||||
        private string $last,
 | 
			
		||||
        private string $nick,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
        // empty body
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										17
									
								
								src/Entity/User.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								src/Entity/User.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
namespace App\Entity;
 | 
			
		||||
 | 
			
		||||
class User
 | 
			
		||||
{
 | 
			
		||||
    public function __construct(
 | 
			
		||||
        private string $nick,
 | 
			
		||||
        private string $password,
 | 
			
		||||
        private string $first = '',
 | 
			
		||||
        private string $last = '',
 | 
			
		||||
        private int $id = 0
 | 
			
		||||
    )
 | 
			
		||||
        {
 | 
			
		||||
            // empty body
 | 
			
		||||
        }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user