Added Breeze
This commit is contained in:
@@ -5,7 +5,6 @@ namespace App\Models\Objects;
|
||||
class Contact
|
||||
{
|
||||
private ?int $id;
|
||||
private string $login;
|
||||
private string $firstName;
|
||||
private string $lastName;
|
||||
private string $phone;
|
||||
@@ -51,12 +50,11 @@ class Contact
|
||||
public function setAttributes(array $attributes = []):void
|
||||
{
|
||||
$this->id = $attributes['id'] ?? null;
|
||||
$this->login = $attributes['login'];
|
||||
$this->firstName = $attributes['firstName'];
|
||||
$this->lastName = $attributes['lastName'];
|
||||
$this->firstName = $attributes['first_name'];
|
||||
$this->lastName = $attributes['last_name'];
|
||||
$this->phone = $attributes['phone'];
|
||||
$this->email = $attributes['email'];
|
||||
$this->webPage = $attributes['webPage'] ?? null;
|
||||
$this->webPage = $attributes['web_page'] ?? null;
|
||||
$this->role = $attributes['role'] ?? null;
|
||||
$this->imgSmall = $this->setImagePath($attributes['img_small']) ?? null;
|
||||
$this->imgLarge = $this->setImagePath($attributes['img_large']) ?? null;
|
||||
@@ -88,11 +86,6 @@ class Contact
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
public function getLogin(): string
|
||||
{
|
||||
return $this->login;
|
||||
}
|
||||
|
||||
public function getFirstName(): string
|
||||
{
|
||||
return $this->firstName;
|
||||
|
||||
Reference in New Issue
Block a user