public function setArrayKeyValue($value) { if (!$this->arrayKey) { return; } $setter = 'set' . ucfirst($this->arrayKey); $this->{$setter}($value); }