improve phpdoc of RepositoryFactoryInterface