PHP Class Scalr\Api\Service\User\V1beta0\Adapter\GlobalVariableAdapter

Author: N.V.
Inheritance: extends Scalr\Api\DataType\ApiEntityAdapter, use trait Scalr\Api\Service\User\V1beta0\Controller\GlobalVariableTrait
ファイルを表示 Open project: scalr/scalr

Protected Properties

Property Type Description
$entityClass
$rules array Converter rules
$scopesPriority int[] Scopes priority

Public Methods

Method Description
convertData ( array $variable ) : array Convert variable model data to api response format
copyAlterableProperties ( $object, AbstractEntity $entity, $scope = ScopeInterface::SCOPE_SCALR )

Method Details

convertData() public method

Convert variable model data to api response format
public convertData ( array $variable ) : array
$variable array
return array

copyAlterableProperties() public method

See also: ApiEntityAdapter::copyAlterableProperties()
public copyAlterableProperties ( $object, AbstractEntity $entity, $scope = ScopeInterface::SCOPE_SCALR )
$entity Scalr\Model\AbstractEntity

Property Details

$entityClass protected_oe property

protected $entityClass

$rules protected_oe property

Converter rules
protected array $rules
return array

$scopesPriority protected_oe property

Scopes priority
protected int[] $scopesPriority
return int[]