<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Support\Concern; trait HasFluentAttribute { protected function addFluentAttributeVariable($L4owo) { if (!in_array($L4owo, $this->fluentAttributes)) { $this->fluentAttributes[] = $L4owo; } } protected function fluentAttributeVariables() { goto hOHV1; uPNG3: foreach ($this->fluentAttributes as $uTz0e) { $SjN8A[$uTz0e] = $this->{$uTz0e}; } goto ZVAVp; ZVAVp: return $SjN8A; goto rKg_3; hOHV1: $SjN8A = array(); goto uPNG3; rKg_3: } protected function isFluentAttribute($HkVnj) { return in_array($HkVnj, $this->fluentAttributes); } protected function setFluentAttribute($L4owo, $wvO30) { $this->{$L4owo} = $wvO30; } protected function fluentAttribute($HkVnj, $nvZ9A) { goto IiNrg; oMu_J: $this->{$HkVnj} = $nvZ9A[0]; goto YzmuM; YzmuM: return $this; goto r_5AR; IiNrg: if (!isset($nvZ9A[0])) { return $this->{$HkVnj}; } goto oMu_J; r_5AR: } }