name = (string)$xml['name']; } /** * Returns the wind direction in full, * e.g «Northeast». * * @return string */ public function getName(): string { return $this->name; } /** * {@inheritDoc} */ public function diff(DiffInterface $d): int { if ($diff = parent::diff($d)) return $diff > static::DEFAULT_VARIANCE ? 1 : 0; return 0; } }