例如:
<?php class A { private $values = []; public function getValues() { return $this->values; } } $config = new A(); $config->getValues()['a'] = 'a';