Last active
May 30, 2022 13:13
-
-
Save mcsee/9dd928bab5528d07b7f63b5d76821f4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
namespace Date; | |
final class DateFormatter { | |
function reformatYYYYDDMMtoYYYYMMDD(Date $date) { | |
} | |
// function is not static since class single responsibility | |
// is to create instances and not be a library of utils | |
} | |
namespace OracleDatabase; | |
class DatabaseAccessor { | |
// Database is not a singleton and it is namespace scoped | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment