<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Support\Concern; trait HasFluentAttribute { protected function addFluentAttributeVariable($c6VKG) { if (!in_array($c6VKG, $this->fluentAttributes)) { $this->fluentAttributes[] = $c6VKG; } } protected function fluentAttributeVariables() { goto xA6Y2; tl_iE: return $Sj05q; goto YOCrt; AUzHf: foreach ($this->fluentAttributes as $pk5fc) { $Sj05q[$pk5fc] = $this->{$pk5fc}; } goto tl_iE; xA6Y2: $Sj05q = array(); goto AUzHf; YOCrt: } protected function isFluentAttribute($hiFdg) { return in_array($hiFdg, $this->fluentAttributes); } protected function setFluentAttribute($c6VKG, $mdHu1) { $this->{$c6VKG} = $mdHu1; } protected function fluentAttribute($hiFdg, $lLyBI) { goto otgJl; loVm0: return $this; goto SluY7; otgJl: if (!isset($lLyBI[0])) { return $this->{$hiFdg}; } goto KUxQH; KUxQH: $this->{$hiFdg} = $lLyBI[0]; goto loVm0; SluY7: } }