Some checks failed
Build & Push Monica Image to Gitea Registry / build-and-push (push) Failing after 9s
33 lines
636 B
PHP
33 lines
636 B
PHP
<?php
|
|
|
|
namespace App\ExportResources\Contact;
|
|
|
|
use App\ExportResources\ExportResource;
|
|
|
|
class LifeEvent extends ExportResource
|
|
{
|
|
protected $columns = [
|
|
'uuid',
|
|
'created_at',
|
|
'updated_at',
|
|
];
|
|
|
|
protected $properties = [
|
|
'name',
|
|
'note',
|
|
'happened_at',
|
|
'specific_information',
|
|
];
|
|
|
|
public function data(): ?array
|
|
{
|
|
return [
|
|
'properties' => [
|
|
$this->mergeWhen($this->lifeEventType != null, function () {
|
|
return ['type' => $this->lifeEventType->uuid];
|
|
}),
|
|
],
|
|
];
|
|
}
|
|
}
|