collection-crud/src/Entity/FlashTrait.php

44 lines
1.3 KiB
PHP
Raw Normal View History

2018-07-18 11:35:27 -04:00
<?php declare(strict_types=1);
2017-11-30 15:06:13 -05:00
namespace App\Entity;
2017-11-30 15:06:13 -05:00
2022-02-17 14:00:50 -05:00
use Doctrine\ORM\Mapping as ORM;
2017-11-30 15:06:13 -05:00
trait FlashTrait
{
2022-11-17 15:32:57 -05:00
use PurchasePrice;
2022-03-03 10:53:48 -05:00
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'brand', type: 'string', nullable: FALSE)]
2022-03-03 10:53:48 -05:00
private readonly string $brand;
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'model', type: 'string', nullable: FALSE)]
2022-03-03 10:53:48 -05:00
private readonly string $model;
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'is_auto_flash', type: 'boolean', nullable: FALSE)]
private bool $isAutoFlash = FALSE;
2022-03-03 10:53:48 -05:00
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'is_ttl', type: 'boolean', nullable: FALSE)]
private bool $isTtl = FALSE;
2022-03-03 10:53:48 -05:00
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'ttl_type', type: 'string', nullable: FALSE)]
2022-03-03 10:53:48 -05:00
private string $ttlType = 'N / A';
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'is_p_ttl', type: 'boolean', nullable: FALSE)]
private bool $isPTtl = FALSE;
2022-03-03 10:53:48 -05:00
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'p_ttl_type', type: 'string', nullable: FALSE)]
2022-03-03 10:53:48 -05:00
private string $pTtlType = 'N / A';
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'guide_number', type: 'string', nullable: TRUE)]
2022-03-03 10:53:48 -05:00
private ?string $guideNumber = '';
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'batteries', type: 'string', nullable: FALSE)]
2022-03-03 10:53:48 -05:00
private string $batteries = '4x AA';
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'notes', type: 'text', nullable: TRUE)]
2022-03-03 10:53:48 -05:00
private readonly ?string $notes;
2022-03-03 11:15:12 -05:00
#[ORM\Column(name: 'serial', type: 'string', nullable: TRUE)]
2022-03-03 10:53:48 -05:00
private readonly ?string $serial;
2017-11-30 15:06:13 -05:00
}