WIP: Extend and improve profile editing
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\BusProNet\Model;
|
||||
|
||||
class BaseDataResponse
|
||||
{
|
||||
private array $items = [];
|
||||
|
||||
public function getItems(): array
|
||||
{
|
||||
return $this->items;
|
||||
}
|
||||
|
||||
public function setItems(array $items): static
|
||||
{
|
||||
$this->items = $items;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\BusProNet\Model;
|
||||
|
||||
class CountriesResponse extends BaseResponse
|
||||
{
|
||||
private array $countries = [];
|
||||
|
||||
public function getCountries(): array
|
||||
{
|
||||
return $this->countries;
|
||||
}
|
||||
|
||||
public function setCountries(array $countries): static
|
||||
{
|
||||
$this->countries = $countries;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\BusProNet\Model;
|
||||
|
||||
class CrmAttributesResponse extends BaseResponse
|
||||
class CrmAttributesResponse
|
||||
{
|
||||
private ?array $attributeGroups = null;
|
||||
private bool $admin = false;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\BusProNet\Model;
|
||||
|
||||
class BaseResponse
|
||||
class NotificationResponse
|
||||
{
|
||||
private ?int $code;
|
||||
private ?string $message;
|
||||
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\BusProNet\Model;
|
||||
|
||||
class PickupsResponse extends BaseResponse
|
||||
{
|
||||
private array $pickups = [];
|
||||
|
||||
public function getPickups(): array
|
||||
{
|
||||
return $this->pickups;
|
||||
}
|
||||
|
||||
public function setPickups(array $pickups): static
|
||||
{
|
||||
$this->pickups = $pickups;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace App\BusProNet\Model;
|
||||
|
||||
class ProfileResponse extends BaseResponse
|
||||
class ProfileResponse
|
||||
{
|
||||
private ?int $addressId = null;
|
||||
private ?int $personId = null;
|
||||
|
||||
Reference in New Issue
Block a user