License and associated PHPDoc

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>