// Get the value for this context, either directly if possible or by
// introspecting the definition.
if($context->hasContextValue()){ $values = [$context->getContextData()]; } elseif($definition instanceof self){ $values = $definition->getSampleValues(); } else{ $values = []; }