Files
chill-bundles/src/Bundle/ChillPersonBundle/Actions/Upsert/UpsertMessage.php

41 lines
1.0 KiB
PHP

<?php
declare(strict_types=1);
/*
* Chill is a software for social workers
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
namespace Chill\PersonBundle\Actions\Upsert;
class UpsertMessage
{
public string $externalId;
public int $personIdentifierDefinitionId;
public ?string $firstName = null;
public ?string $lastName = null;
public ?string $gender = null;
public ?string $birthdate = null;
public ?string $mobileNumber = null;
public ?string $phoneNumber = null;
public ?string $addressStreet = null;
/**
* The extra field of the address.
*/
public ?string $addressExtra = null;
public ?string $addressStreetNumber = null;
public ?string $addressPostcode = null;
public ?string $addressCity = null;
public ?string $center = null;
public function hasAddressInfo(): bool
{
return null !== $this->addressStreet || null !== $this->addressPostcode || null !== $this->addressStreetNumber;
}
}