added getters & setters
This commit is contained in:
		@@ -1,4 +1,11 @@
 | 
				
			|||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
					/*
 | 
				
			||||||
 | 
					 * Copyright (c) 2022. Micha Espey <tracer@24unix.net>
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 * For the full copyright and license information, please view the LICENSE
 | 
				
			||||||
 | 
					 * file that was distributed with this source code.
 | 
				
			||||||
 | 
					 *
 | 
				
			||||||
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace App\Entity;
 | 
					namespace App\Entity;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -13,4 +20,44 @@ class AddressBookEntry
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        // empty body
 | 
					        // empty body
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function getUserid(): int
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        return $this->userid;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function setUserid(int $userid): void
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $this->userid = $userid;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function getFirst(): string
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        return $this->first;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function setFirst(string $first): void
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $this->first = $first;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function getLast(): string
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        return $this->last;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function setLast(string $last): void
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $this->last = $last;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function getNick(): string
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        return $this->nick;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    public function setNick(string $nick): void
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        $this->nick = $nick;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user