Moved setter for repository before getter in BasePackage class

Also added @inheritDoc to BasePackage::setRepository() and BasePackage::getRepository() methods