public function getArrayKeyValue() { if (!$this->arrayKey) { return; } $getter = 'get' . ucfirst($this->arrayKey); return $this->{$getter}(); }