public static function createFromData(\stdClass $data) { /** @var static $media */ $media = parent::createFromData($data); $media->duration = $data->duration; return $media; }
public function __construct($siteURL, $id, $width = '100%', $height = '100%') { $this->siteURL = $siteURL; parent::__construct($id, $width, $height); }