<?php
namespace App\Model\Entity;

use Cake\ORM\Entity;

/**
 * Personalize Entity
 *
 * @property int $id
 * @property int $member_id
 * @property int $company_id
 * @property int $is_smtp
 * @property string|null $username
 * @property string|null $password
 * @property int|null $smtp_port
 * @property string|null $smtp_host
 * @property string|null $smtp_from
 * @property string|null $email_signature
 * @property string $domain_type
 * @property int $is_www
 * @property string|null $domain
 * @property \Cake\I18n\Time|null $created_at
 * @property \Cake\I18n\Time|null $updated_at
 * @property string|null $header
 * @property string|null $footer
 *
 * @property \App\Model\Entity\Member $member
 * @property \App\Model\Entity\Company $company
 */
class Personalize 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
     */
    protected $_accessible = [
        'member_id' => true,
        'company_id' => true,
        'is_smtp' => true,
        'username' => true,
        'password' => true,
        'smtp_port' => true,
        'smtp_host' => true,
        'smtp_from' => true,
        'email_signature' => true,
        'domain_type' => true,
        'is_www' => true,
        'domain' => true,
        'created_at' => true,
        'updated_at' => true,
        'header' => true,
        'footer' => true,
        'member' => true,
        'company' => true,
    ];

    /**
     * Fields that are excluded from JSON versions of the entity.
     *
     * @var array
     */
    protected $_hidden = [
        'password',
    ];
}
