LengthUnit.php Interfaces, Classes and Traits LengthUnit Length unit base data class. Any new length units should extend this class and implement their name, symbol and units; overriding the $unitOf and $base properties only if necessary.