<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Support\Concern; trait HasFluentAttribute { protected function addFluentAttributeVariable($TUuqF) { if (!in_array($TUuqF, $this->fluentAttributes)) { $this->fluentAttributes[] = $TUuqF; } } protected function fluentAttributeVariables() { goto zFG21; zFG21: $Y0YxF = array(); goto lrM5V; lrM5V: foreach ($this->fluentAttributes as $ohYVl) { $Y0YxF[$ohYVl] = $this->{$ohYVl}; } goto f3bYB; f3bYB: return $Y0YxF; goto hCEZJ; hCEZJ: } protected function isFluentAttribute($WIVcd) { return in_array($WIVcd, $this->fluentAttributes); } protected function setFluentAttribute($TUuqF, $tzAUI) { $this->{$TUuqF} = $tzAUI; } protected function fluentAttribute($WIVcd, $MVaFK) { goto PP750; Ei5mr: $this->{$WIVcd} = $MVaFK[0]; goto IASry; PP750: if (!isset($MVaFK[0])) { return $this->{$WIVcd}; } goto Ei5mr; IASry: return $this; goto W6zmS; W6zmS: } }