<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Support\Concern; trait HasFluentAttribute { protected function addFluentAttributeVariable($ZZMEd) { if (!in_array($ZZMEd, $this->fluentAttributes)) { $this->fluentAttributes[] = $ZZMEd; } } protected function fluentAttributeVariables() { goto uQdFa; iTutA: return $zvN10; goto MJvqg; SJ1qp: foreach ($this->fluentAttributes as $Xz28r) { $zvN10[$Xz28r] = $this->{$Xz28r}; } goto iTutA; uQdFa: $zvN10 = array(); goto SJ1qp; MJvqg: } protected function isFluentAttribute($pK00s) { return in_array($pK00s, $this->fluentAttributes); } protected function setFluentAttribute($ZZMEd, $Mczr_) { $this->{$ZZMEd} = $Mczr_; } protected function fluentAttribute($pK00s, $rxS2C) { goto UEu4C; lCj6A: $this->{$pK00s} = $rxS2C[0]; goto VPgWt; UEu4C: if (!isset($rxS2C[0])) { return $this->{$pK00s}; } goto lCj6A; VPgWt: return $this; goto mgPge; mgPge: } }