removed userid, added id
This commit is contained in:
		@@ -12,14 +12,14 @@ namespace App\Entity;
 | 
				
			|||||||
class AddressBookEntry
 | 
					class AddressBookEntry
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    public function __construct(
 | 
					    public function __construct(
 | 
				
			||||||
        private int $owner,
 | 
					        private int    $owner,
 | 
				
			||||||
        private string $first,
 | 
					        private string $first,
 | 
				
			||||||
        private string $last,
 | 
					        private string $last,
 | 
				
			||||||
        private string $street,
 | 
					        private string $street,
 | 
				
			||||||
        private string $zip,
 | 
					        private string $zip,
 | 
				
			||||||
        private string $city,
 | 
					        private string $city,
 | 
				
			||||||
        private string $phone,
 | 
					        private string $phone,
 | 
				
			||||||
        private int $userid = 0,
 | 
					        private int    $id = 0,
 | 
				
			||||||
    )
 | 
					    )
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        // empty body
 | 
					        // empty body
 | 
				
			||||||
@@ -75,14 +75,14 @@ class AddressBookEntry
 | 
				
			|||||||
        $this->phone = $phone;
 | 
					        $this->phone = $phone;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function getUserid(): int
 | 
					    public function getId(): int
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        return $this->userid;
 | 
					        return $this->id;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function setUserid(int $userid): void
 | 
					    public function setId(int $id): void
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        $this->userid = $userid;
 | 
					        $this->id = $id;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public function getFirst(): string
 | 
					    public function getFirst(): string
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user