You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?php$distance = new \Reusables\Distance(12, 'inches');
$distance = new \Reusables\Distance(1, 'inch');
$distance = new \Reusables\Distance(12, Distance::INCHES);
The text was updated successfully, but these errors were encountered:
jehoshua02
changed the title
Strings instead of constants?
String alternative of constants?
Apr 2, 2015
Or ... the mapping keys can be uppercase and we do strtoupper. That way we can even use constants for the keys and have a single mapping array for singular/plural lookups too.
The text was updated successfully, but these errors were encountered: