uawdijnntqw1x1x1
IP : 216.73.216.28
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
yiisoft
/
yii2-shell
/
YiiCaster.php
/
/
<?php /** * @link https://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC * @license https://www.yiiframework.com/license/ */ namespace yii\shell; use Symfony\Component\VarDumper\Caster\Caster; use yii\db\ActiveRecord; /** * YiiCaster provides wrapper for casters of psysh * * @author Daniel Gomez Pan <pana_1990@hotmail.com> * @since 2.0 */ class YiiCaster { /** * Get an array representing the properties of a model. * * @param \yii\db\ActiveRecord $model * @return array */ public static function castModel(ActiveRecord $model) { $attributes = array_merge( $model->getAttributes(), $model->getRelatedRecords() ); $results = []; foreach ($attributes as $key => $value) { $results[Caster::PREFIX_VIRTUAL.$key] = $value; } return $results; } }
/srv/users/craft4/apps/craft4-newsite-space/vendor/yiisoft/yii2-shell/YiiCaster.php