// Reflection is both slower and more painful to use than array casting
// We only use it to identify readonly and uninitialized properties
if(KINT_PHP74 && '__PHP_Incomplete_Class' != $object->classname){ $rprops = $reflector->getProperties();
// create version of order to ensure the document stays the same even if the order changes
$operation->setOrderVersionId($this->orderRepository->createVersion($orderId, $context, 'document'));
/**
* Get the protected and private properties of the class and return as an array.
*/ finalpublicfunctiongetNonPublicProperties(): array { $exclude = ['view']; $properties = [];
if($method->isStatic() || $method->isAbstract() || $method->isGenerator() || $method->isInternal() || $method->getNumberOfRequiredParameters()){ thrownew \LogicException(sprintf('Cannot use "%s" on method "%s::%s()" (can only be used on non-static, non-abstract methods with no parameters).', SubscribedService::class, self::class, $method->name)); }
if(!$returnType = $method->getReturnType()){ thrownew \LogicException(sprintf('Cannot use "%s" on methods without a return type in "%s::%s()".', SubscribedService::class, $method->name, self::class)); }