PaymentCallback
extends BaseEntity
in package
implements
IdentifiableInterface
uses
IdentifiableTrait
AbstractYes
Attributes
- #[MappedSuperclass]
- #[TableAlias]
- $alias: 'paymentCallback'
Table of Contents
Interfaces
- IdentifiableInterface
- Entity with a simple integer primary key. Most entities have one (often via {@see \App\Core\Traits\Shared\Models\Entities\IdentifiableTrait}); texts and links with a composite key do not, which is why `getId()` is not on {@see \App\Core\Base\BaseEntity}. Code that needs the id of a generic entity asks for this interface (parameter type, template bound, `instanceof`).
Properties
- $callbackKey : string
- $class : string|null
- $function : string|null
- $id : int|null
- $namespace : string|null
- $serviceName : string|null
Methods
- __construct() : mixed
- callInitMethods() : void
- Calls `init{TraitName}()` for every used trait that defines such a method.
- getAllTraits() : array<string, string>
- Returns all traits the class uses, including those used by parent classes and nested traits.
- getCallbackKey() : string
- getClass() : string|null
- getFunction() : string|null
- getId() : int|null
- getNamespace() : string|null
- getServiceName() : string|null
- isPersisted() : bool
- setCallbackKey() : $this
- setClass() : $this
- setFunction() : self
- setId() : $this
- setNamespace() : $this
- setServiceName() : $this
- getTraitsRecursive() : array<string, string>
- Walks the trait list recursively and collects nested traits too.
Properties
$callbackKey
protected
string
$callbackKey
= ''
Attributes
- #[Column]
- $name: 'callback_key'
- $type: 'string'
- $length: 45
$class
protected
string|null
$class
= null
Attributes
- #[Column]
- $name: 'class'
- $type: 'string'
- $length: 255
- $nullable: true
- #[FieldAccess]
- $read: Audience::Privileged
- $insert: Audience::Privileged
- $update: Audience::Privileged
$function
protected
string|null
$function
= null
Attributes
- #[Column]
- $name: '`function`'
- $type: 'string'
- $length: 255
- $nullable: true
- #[FieldAccess]
- $read: Audience::Privileged
- $insert: Audience::Privileged
- $update: Audience::Privileged
$id
protected
int|null
$id
= null
Attributes
- #[Column]
- $name: 'callback_id'
- $type: 'integer'
- $options: ['unsigned' => true]
- #[GeneratedValue]
- #[Id]
$namespace
protected
string|null
$namespace
= null
Attributes
- #[Column]
- $name: 'namespace'
- $type: 'string'
- $length: 255
- $nullable: true
- #[FieldAccess]
- $read: Audience::Privileged
- $insert: Audience::Privileged
- $update: Audience::Privileged
$serviceName
protected
string|null
$serviceName
= null
Attributes
- #[Column]
- $name: 'service_name'
- $type: 'string'
- $length: 255
- $nullable: true
- #[FieldAccess]
- $read: Audience::Privileged
- $insert: Audience::Privileged
- $update: Audience::Privileged
Methods
__construct()
public
__construct([int|null $id = null ][, string|null $serviceName = null ][, string $callbackKey = '' ][, string|null $namespace = null ][, string|null $class = null ][, string|null $function = null ]) : mixed
Parameters
- $id : int|null = null
- $serviceName : string|null = null
- $callbackKey : string = ''
- $namespace : string|null = null
- $class : string|null = null
- $function : string|null = null
callInitMethods()
Calls `init{TraitName}()` for every used trait that defines such a method.
public
callInitMethods() : void
getAllTraits()
Returns all traits the class uses, including those used by parent classes and nested traits.
public
getAllTraits() : array<string, string>
Return values
array<string, string>getCallbackKey()
public
getCallbackKey() : string
Return values
stringgetClass()
public
getClass() : string|null
Return values
string|nullgetFunction()
public
getFunction() : string|null
Return values
string|nullgetId()
public
getId() : int|null
Return values
int|nullgetNamespace()
public
getNamespace() : string|null
Return values
string|nullgetServiceName()
public
getServiceName() : string|null
Return values
string|nullisPersisted()
public
isPersisted() : bool
Return values
boolsetCallbackKey()
public
setCallbackKey(string $callbackKey) : $this
Parameters
- $callbackKey : string
Return values
$thissetClass()
public
setClass(string|null $class) : $this
Parameters
- $class : string|null
Return values
$thissetFunction()
public
setFunction(string|null $function) : self
Parameters
- $function : string|null
Return values
selfsetId()
public
setId(int|null $id) : $this
Parameters
- $id : int|null
Return values
$thissetNamespace()
public
setNamespace(string|null $namespace) : $this
Parameters
- $namespace : string|null
Return values
$thissetServiceName()
public
setServiceName(string|null $serviceName) : $this
Parameters
- $serviceName : string|null
Return values
$thisgetTraitsRecursive()
Walks the trait list recursively and collects nested traits too.
private
static getTraitsRecursive(array<string, string> $traits) : array<string, string>
Parameters
- $traits : array<string, string>