<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Support\Concern; trait HasFluentAttribute { protected function addFluentAttributeVariable($L1g9F) { if (!in_array($L1g9F, $this->fluentAttributes)) { $this->fluentAttributes[] = $L1g9F; } } protected function fluentAttributeVariables() { goto h5bOs; G2sX9: foreach ($this->fluentAttributes as $VFelt) { $OTBPk[$VFelt] = $this->{$VFelt}; } goto wRQga; wRQga: return $OTBPk; goto y3zPI; h5bOs: $OTBPk = array(); goto G2sX9; y3zPI: } protected function isFluentAttribute($HxDDI) { return in_array($HxDDI, $this->fluentAttributes); } protected function setFluentAttribute($L1g9F, $gwXrh) { $this->{$L1g9F} = $gwXrh; } protected function fluentAttribute($HxDDI, $CUZy6) { goto AY_zp; AY_zp: if (!isset($CUZy6[0])) { return $this->{$HxDDI}; } goto BnqwL; B67Lx: return $this; goto haRkK; BnqwL: $this->{$HxDDI} = $CUZy6[0]; goto B67Lx; haRkK: } }