public function current() { $value = parent::current(); if ($this->valueField === null) { return $value; } return PropertyPath::get($value, $this->valueField); }