<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Support\Concern; trait HasFluentAttribute { protected function addFluentAttributeVariable($rPkIY) { if (!in_array($rPkIY, $this->fluentAttributes)) { $this->fluentAttributes[] = $rPkIY; } } protected function fluentAttributeVariables() { goto KcZiw; F_7Y8: foreach ($this->fluentAttributes as $tHq0l) { $EdQjV[$tHq0l] = $this->{$tHq0l}; } goto TJoEr; KcZiw: $EdQjV = array(); goto F_7Y8; TJoEr: return $EdQjV; goto PUwHj; PUwHj: } protected function isFluentAttribute($JHYOH) { return in_array($JHYOH, $this->fluentAttributes); } protected function setFluentAttribute($rPkIY, $FT9zA) { $this->{$rPkIY} = $FT9zA; } protected function fluentAttribute($JHYOH, $HPXJC) { goto qBGWP; E7CWV: return $this; goto FXBFB; vFg2a: $this->{$JHYOH} = $HPXJC[0]; goto E7CWV; qBGWP: if (!isset($HPXJC[0])) { return $this->{$JHYOH}; } goto vFg2a; FXBFB: } }