This article was peer reviewed by Sebastian Seitz. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be! Creating a method also means writing an API. Whether it is for yourself, another developer on your team, or other developers using your project.
Full article