public function key() { $child = current($this->children); if (false === $child) { return null; } return $child->getName(); }