58 lines
1.6 KiB
PHP
58 lines
1.6 KiB
PHP
|
|
<?php
|
||
|
|
declare(strict_types=1);
|
||
|
|
|
||
|
|
namespace CakeAddresses\Model\Entity;
|
||
|
|
|
||
|
|
use Cake\ORM\Entity;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* State Entity
|
||
|
|
*
|
||
|
|
* @property int $id
|
||
|
|
* @property string $name
|
||
|
|
* @property int $country_id
|
||
|
|
* @property string $country_code
|
||
|
|
* @property string|null $fips_code
|
||
|
|
* @property string|null $iso2
|
||
|
|
* @property string|null $type
|
||
|
|
* @property string|null $latitude
|
||
|
|
* @property string|null $longitude
|
||
|
|
* @property \Cake\I18n\DateTime|null $created_at
|
||
|
|
* @property \Cake\I18n\DateTime $updated_at
|
||
|
|
* @property bool $flag
|
||
|
|
* @property string|null $wikiDataId
|
||
|
|
*
|
||
|
|
* @property \CakeAddresses\Model\Entity\Country $country
|
||
|
|
* @property \CakeAddresses\Model\Entity\Address[] $addresses
|
||
|
|
* @property \CakeAddresses\Model\Entity\City[] $cities
|
||
|
|
*/
|
||
|
|
class State extends Entity
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Fields that can be mass assigned using newEntity() or patchEntity().
|
||
|
|
*
|
||
|
|
* Note that when '*' is set to true, this allows all unspecified fields to
|
||
|
|
* be mass assigned. For security purposes, it is advised to set '*' to false
|
||
|
|
* (or remove it), and explicitly make individual fields accessible as needed.
|
||
|
|
*
|
||
|
|
* @var array<string, bool>
|
||
|
|
*/
|
||
|
|
protected array $_accessible = [
|
||
|
|
'name' => true,
|
||
|
|
'country_id' => true,
|
||
|
|
'country_code' => true,
|
||
|
|
'fips_code' => true,
|
||
|
|
'iso2' => true,
|
||
|
|
'type' => true,
|
||
|
|
'latitude' => true,
|
||
|
|
'longitude' => true,
|
||
|
|
'created_at' => true,
|
||
|
|
'updated_at' => true,
|
||
|
|
'flag' => true,
|
||
|
|
'wikiDataId' => true,
|
||
|
|
'country' => true,
|
||
|
|
'addresses' => true,
|
||
|
|
'cities' => true,
|
||
|
|
];
|
||
|
|
}
|