Contao\MetaWizard::__set PHP Method

__set() public method

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)
    {
        switch ($strKey) {
            case 'metaFields':
                if (!array_is_assoc($varValue)) {
                    $varValue = array_combine($varValue, array_fill(0, count($varValue), ''));
                }
                $this->arrConfiguration['metaFields'] = $varValue;
                break;
            default:
                parent::__set($strKey, $varValue);
                break;
        }
    }