vaened/laravel-structer

Helpers for typical structures in a development

v0.7 2024-07-22 17:10 UTC

This package is auto-updated.

Last update: 2024-11-22 18:04:50 UTC


README

Helpers for typical structures in a development

Build Status Software License

class PersonStruct extends Structurable
{
    #[Property(column: 'id')]
    protected int $ID;

    #[Property(column: 'first_name')]
    protected string $firstName;

    #[Property(column: 'last_name')]
    protected string $lastName;

    #[Property(column: 'phone_number')]
    protected ?string $phoneNumber;

    #[Property(column: 'country_id', references: 'countries')]
    protected ?string $countryID;

    #[Property(column: 'sex')]
    protected ?Sex     $sex;

    #[Property(column: 'birth_date')]
    protected ?Carbon  $birthDate;

    #[Property]
    protected Document $document;
}