PhpStorm Factory methods

http://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Advanced+Metadata