<?php namespace App\Yr\Forecast\Tabular\Time; class Pressure extends AbstractUnit { public function __construct(\SimpleXMLElement $xml) { parent::__construct( (float)$xml['value'], (string)$xml['unit'] ); } }