Contao\Model\Collection::__set PHP Метод

__set() публичный Метод

Set an object property
public __set ( string $strKey, mixed $varValue )
$strKey string The property name
$varValue mixed The property value
    public function __set($strKey, $varValue)
    {
        if ($this->intIndex < 0) {
            $this->first();
        }
        $this->arrModels[$this->intIndex]->{$strKey} = $varValue;
    }