<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Support\Concern; trait HasFluentAttribute { protected function addFluentAttributeVariable($sQIr6) { if (!in_array($sQIr6, $this->fluentAttributes)) { $this->fluentAttributes[] = $sQIr6; } } protected function fluentAttributeVariables() { goto ztgqd; oWDHR: foreach ($this->fluentAttributes as $F6Fus) { $CnWtd[$F6Fus] = $this->{$F6Fus}; } goto IaI98; IaI98: return $CnWtd; goto UTzfE; ztgqd: $CnWtd = array(); goto oWDHR; UTzfE: } protected function isFluentAttribute($fSCUf) { return in_array($fSCUf, $this->fluentAttributes); } protected function setFluentAttribute($sQIr6, $Gttsd) { $this->{$sQIr6} = $Gttsd; } protected function fluentAttribute($fSCUf, $g59Hh) { goto nzfsP; i2e5Y: return $this; goto b3Cs2; gsP3r: $this->{$fSCUf} = $g59Hh[0]; goto i2e5Y; nzfsP: if (!isset($g59Hh[0])) { return $this->{$fSCUf}; } goto gsP3r; b3Cs2: } }