name = (string)$xml['name']; } public function diff(DiffInterface $d): bool { if (parent::diff($d)) return $this->getUnit() != $f->getUnit(); return false; } public function getName(): string { return $this->name; } }