Add some phpdocs (some from Scrutinizer CI)