Added Breeze

This commit is contained in:
amikhaylov
2026-05-18 23:43:26 +03:00
parent 0c06d83b0b
commit c9a514b0fa
17 changed files with 249 additions and 59 deletions
+3 -10
View File
@@ -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;