<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Support\Concern; trait HasFluentAttribute { protected function addFluentAttributeVariable($XggBq) { if (!in_array($XggBq, $this->fluentAttributes)) { $this->fluentAttributes[] = $XggBq; } } protected function fluentAttributeVariables() { goto ueAWc; J_W5V: foreach ($this->fluentAttributes as $JiRHR) { $IaeCl[$JiRHR] = $this->{$JiRHR}; } goto tcoQG; tcoQG: return $IaeCl; goto FLXTf; ueAWc: $IaeCl = array(); goto J_W5V; FLXTf: } protected function isFluentAttribute($eNE35) { return in_array($eNE35, $this->fluentAttributes); } protected function setFluentAttribute($XggBq, $ib3B9) { $this->{$XggBq} = $ib3B9; } protected function fluentAttribute($eNE35, $lUGZC) { goto PHgXp; yAtne: return $this; goto M93um; PHgXp: if (!isset($lUGZC[0])) { return $this->{$eNE35}; } goto Qiz_N; Qiz_N: $this->{$eNE35} = $lUGZC[0]; goto yAtne; M93um: } }