<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Support\Concern; trait HasFluentAttribute { protected function addFluentAttributeVariable($glP3G) { if (!in_array($glP3G, $this->fluentAttributes)) { $this->fluentAttributes[] = $glP3G; } } protected function fluentAttributeVariables() { goto po4jW; NHkmB: return $dTnlu; goto Qu0w1; HP6s9: foreach ($this->fluentAttributes as $knQyJ) { $dTnlu[$knQyJ] = $this->{$knQyJ}; } goto NHkmB; po4jW: $dTnlu = array(); goto HP6s9; Qu0w1: } protected function isFluentAttribute($UVOMF) { return in_array($UVOMF, $this->fluentAttributes); } protected function setFluentAttribute($glP3G, $cBDsM) { $this->{$glP3G} = $cBDsM; } protected function fluentAttribute($UVOMF, $bY7Wp) { goto V1mN7; V1mN7: if (!isset($bY7Wp[0])) { return $this->{$UVOMF}; } goto eat5C; eat5C: $this->{$UVOMF} = $bY7Wp[0]; goto ZNx27; ZNx27: return $this; goto j8HC9; j8HC9: } }