-
app/Interfaces/ByteUnitsInterface.php
Open in GitHubinterface ByteUnitsInterface { public function bytesFromUnit(string $units): int; }
-
app/Helpers/ByteUnits.php
Open in GitHubuse App\Interfaces\ByteUnitsInterface; use ByteUnits as ByteUnitsLibrary; class ByteUnits implements ByteUnitsInterface { public function bytesFromUnit(string $units): int { return ByteUnitsLibrary\parse($units)->numberOfBytes(); } }