public function __set($strKey, $varValue) { if ($this->intIndex < 0) { $this->first(); } $this->arrModels[$this->intIndex]->{$strKey} = $varValue; }