You are here

Volume.php in Physical Fields 8

Namespace

Drupal\physical

File

src/Volume.php
View source
<?php

namespace Drupal\physical;


/**
 * Provides a value object for volume amounts.
 *
 * Usage example:
 * @code
 *   $volume = new Volume('3.00', VolumeUnit::LITER);
 * @endcode
 */
final class Volume extends Measurement {

  /**
   * The measurement type.
   *
   * @var string
   */
  protected $type = MeasurementType::VOLUME;

}

Classes

Namesort descending Description
Volume Provides a value object for volume amounts.