Skip to content

Instantly share code, notes, and snippets.

@mcsee

mcsee/namespaces.php

Last active May 15, 2021
Embed
What would you like to do?
<?
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