MetaFox

Type extends Model
in package
implements Entity Uses HasEntity, HasFactory

Class Type.

Tags
SuppressWarnings

(PHPMD.BooleanArgumentFlag)

SuppressWarnings

(PHPMD.BooleanGetMethodName)

Table of Contents

Interfaces

Entity
Interface Entity.

Constants

ENTITY_TYPE  = 'notification_type'
IS_ACTIVE  = 1

Properties

$can_edit  : bool
$channels  : array<string|int, string>
$database  : bool
$handler  : string
$id  : int
$is_active  : bool
$is_request  : bool
$is_system  : bool
$mail  : bool
$module_id  : string
$ordering  : int
$timestamps  : mixed
$title  : string
$type  : string
$typeChannels  : Collection
$casts  : array<string, string>
$fillable  : array<string|int, string>
$table  : string

Methods

entityId()  : int
entityType()  : string
factory()  : TypeFactory
moduleName()  : string
modules()  : HasMany
packageName()  : string
typeChannels()  : HasMany
newFactory()  : TypeFactory

Constants

ENTITY_TYPE

public string ENTITY_TYPE = 'notification_type'

IS_ACTIVE

public mixed IS_ACTIVE = 1

Properties

$can_edit

public bool $can_edit

$channels

public array<string|int, string> $channels

$database

public bool $database

$handler

public string $handler

$is_active

public bool $is_active

$is_request

public bool $is_request

$is_system

public bool $is_system

$module_id

public string $module_id

$ordering

public int $ordering

$timestamps

public mixed $timestamps = false

$title

public string $title

$type

public string $type

$typeChannels

public Collection $typeChannels

$casts

protected array<string, string> $casts = ['can_edit' => 'boolean', 'is_request' => 'boolean', 'is_active' => 'boolean', 'is_system' => 'boolean', 'channels' => 'array']

$fillable

protected array<string|int, string> $fillable = ['type', 'handler', 'title', 'module_id', 'can_edit', 'is_request', 'is_active', 'channels', 'is_system', 'ordering']

$table

protected string $table = 'notification_types'

Methods

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

factory()

public static factory(mixed $parameters) : TypeFactory
Parameters
$parameters : mixed
Return values
TypeFactory

moduleName()

public moduleName() : string
Return values
string

modules()

public modules() : HasMany
Return values
HasMany

packageName()

public packageName() : string
Return values
string

typeChannels()

public typeChannels() : HasMany
Return values
HasMany

newFactory()

protected static newFactory() : TypeFactory
Return values
TypeFactory

        
On this page

Search results