Translations:Manual:$wgTitle/15/en

As an example, the Skin class extends ContextSource, so if your code is a method of a subclass of the Skin class, you would use $getTitle inside your method to get the current title.