Skip to content

Instantly share code, notes, and snippets.

@mcsee
Last active May 30, 2022 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcsee/9dd928bab5528d07b7f63b5d76821f4f to your computer and use it in GitHub Desktop.
Save mcsee/9dd928bab5528d07b7f63b5d76821f4f to your computer and use it in GitHub Desktop.
<?
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