Update phpdoc references to $self to include type