Documentation

VariadicModel extends ServiceModel
in package

Base class for all controllers

Table of Contents

$configKey  : string
Config key to read settings
$localModel  : string
Local model class name
$models  : array<string|int, class-string>
List of hiding models
$remoteModel  : string
Remote model class name
$realModel  : ServiceModel
Real model
__construct()  : mixed
Constructor
getRealModel()  : ServiceModel
Method returns real model
setRealModel()  : void
Method sets real model
trySetRealModel()  : void
Trying to set real model

Properties

$configKey

Config key to read settings

protected string $configKey = 'variadic-model-config-key'

$localModel

Local model class name

protected string $localModel = MezonServiceServiceModel::class

$models

List of hiding models

protected array<string|int, class-string> $models = []

$remoteModel

Remote model class name

protected string $remoteModel = MezonServiceServiceModel::class

Methods

__construct()

Constructor

public __construct([ServiceModel $model = null ]) : mixed
Parameters
$model : ServiceModel = null

real model

Tags
psalm-suppress

MixedMethodCall,

Return values
mixed

trySetRealModel()

Trying to set real model

private trySetRealModel(object $realModel) : void
Parameters
$realModel : object

real model

Return values
void

Search results

    Яндекс.Метрика