在__construct中设置属性时是否调用了魔术方法__set?
class MyClass
{
public function __construct()
{
$this->property = 'something';
}
public function __set($name,$value)
{
$this->{$name} = ($name == 'property')?'other value':$value;
}
}