Maybe the values could be directly 'prototype' and 'singleton' instead of integers? That may be useful later if the scope configuration will be possible through PHP (alternative to annotations).