jeyroik/extas-values-self

There is no license information available for the latest version (0.1.0) of this package.

Self values for Extas

0.1.0 2020-05-22 11:44 UTC

This package is auto-updated.

Last update: 2024-04-22 20:59:43 UTC


README

PHP Composer codecov.io PHPStan Enabled 68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f32333630326438353637313463656633663639612f6d61696e7461696e6162696c697479

Описание

Позволяет ссылаться на другие значения сущности.

Использование

use extas\components\values\WithComplexValue;
$item = new class ([WithComplexValue::FIELD__VALUE => '@parent.name']) extends WithComplexValue {
    use \extas\components\THasName;
};

$item->setName('test');
$item['replaces'] = ['parent' => $item];
echo $item->buildValue($item->getValue()); // test