Prado\I18N\core\CultureInfo::__set PHP 메소드

__set() 공개 메소드

Allow functions that begins with 'set' to be called directly as an attribute/property to set the value.
public __set ( $name, $value )
    function __set($name, $value)
    {
        $setProperty = 'set' . $name;
        if (in_array($setProperty, $this->properties)) {
            $this->{$setProperty}($value);
        } else {
            throw new Exception('Property ' . $name . ' can not be set.');
        }
    }