/** * @param string $eventFqcn * @param SubscribeOptions $options * @param PipelineStageContext $parentContext */ public function __construct($eventFqcn, SubscribeOptions $options, PipelineStageContext $parentContext) { Guard::againstNullAndEmpty('eventFqcn', $eventFqcn); parent::__construct($parentContext); $this->eventFqcn = $eventFqcn; $this->subscribeOptions = $options; }
/** * @param string $name * @param string $dsn * @param \Doctrine_Manager $manager */ public function __construct($name = null, $dsn, \Doctrine_Manager $manager) { Guard::againstNullAndEmpty('dns', $dsn); $this->name = $name === '' ? null : $name; $this->dsn = $dsn; $this->manager = $manager; }
/** * @param string $dependantId * @param string $dependsOnId * @param bool $isEnforced */ public function __construct($dependantId, $dependsOnId, $isEnforced) { Guard::againstNullAndEmpty('dependantId', $dependantId); Guard::againstNullAndEmpty('dependsOnId', $dependsOnId); $this->dependantId = $dependantId; $this->dependsOnId = $dependsOnId; $this->isEnforced = $isEnforced; }
/** * @param string $messageId * @param array $headers * @param string $body */ public function __construct($messageId, array $headers, $body) { Guard::againstNullAndEmpty('messageId', $messageId); Guard::againstNull('body', $body); $this->messageId = $messageId; $this->headers = $headers; $this->body = $body; }
/** * @param string $messageId * @param array $options * @param string $body * @param array $headers */ public function __construct($messageId, array $options, $body, array $headers) { Guard::againstNullAndEmpty('messageId', $messageId); $this->messageId = $messageId; $this->options = $options; $this->body = $body; $this->headers = $headers; }
/** * @param string $inputQueue * @param string $errorQueue * @param bool $purgeOnStartup */ public function __construct($inputQueue, $errorQueue, $purgeOnStartup) { Guard::againstNullAndEmpty('inputQueue', $inputQueue); Guard::againstNullAndEmpty('errorQueue', $errorQueue); $this->inputQueue = $inputQueue; $this->errorQueue = $errorQueue; $this->purgeOnStartup = $purgeOnStartup; }
/** * StepReplacement constructor. * * @param string $idToReplace * @param string $stepFqcn * @param callable|null $factory * @param string|null $description */ public function __construct($idToReplace, $stepFqcn, callable $factory = null, $description = null) { Guard::againstNullAndEmpty('idToReplace', $idToReplace); Guard::againstNullAndEmpty('stepClass', $stepFqcn); $this->idToReplace = $idToReplace; $this->stepFqcn = $stepFqcn; $this->factory = $factory; $this->description = $description; }
/** * @param int $jsonEncodeOptions * @param string $encodingAnnotation */ public function __construct($jsonEncodeOptions = JSON_UNESCAPED_UNICODE, $encodingAnnotation = '@utf8encoded') { Guard::againstNullAndEmpty('encodingAnnotation', $encodingAnnotation); if (PHP_VERSION_ID >= 50606) { $jsonEncodeOptions |= JSON_PRESERVE_ZERO_FRACTION; } $this->jsonEncodeOptions = $jsonEncodeOptions; $this->encodingAnnotation = $encodingAnnotation; }
/** * @param string $messageId * @param array $headers * @param string $body * @param ReceiveCancellationToken $cancellationToken * @param EndpointControlToken $endpointControlToken */ public function __construct($messageId, array $headers, $body, ReceiveCancellationToken $cancellationToken, EndpointControlToken $endpointControlToken) { Guard::againstNullAndEmpty('messageId', $messageId); Guard::againstNullAndEmpty('headers', $headers); Guard::againstNull('body', $body); $this->messageId = $messageId; $this->headers = $headers; $this->body = $body; $this->cancellationToken = $cancellationToken; $this->endpointControlToken = $endpointControlToken; }
/** * @param string $id */ public function insertAfter($id) { Guard::againstNullAndEmpty('id', $id); $this->afters[] = new StepRegistrationDependency($this->stepId, $id, true); }
/** * @param string $endpointName * @param Settings $settings * @param MessageHandlerRegistry $messageHandlerRegistry * @param UnicastRoutingTable $unicastRoutingTable * @param MessageMutatorRegistry $messageMutatorRegistry * @param PipelineModifications $pipelineModifications */ public function __construct($endpointName, Settings $settings, MessageHandlerRegistry $messageHandlerRegistry, UnicastRoutingTable $unicastRoutingTable, MessageMutatorRegistry $messageMutatorRegistry, PipelineModifications $pipelineModifications) { Guard::againstNullAndEmpty('name', $endpointName); $this->endpointName = $endpointName; $this->settings = $settings; $this->messageHandlerRegistry = $messageHandlerRegistry; $this->unicastRoutingTable = $unicastRoutingTable; $this->messageMutatorRegistry = $messageMutatorRegistry; $this->pipelineModifications = $pipelineModifications; }
/** * @param string $classAnnotation */ public function __construct($classAnnotation = '@type') { Guard::againstNullAndEmpty('classAnnotation', $classAnnotation); $this->classAnnotation = $classAnnotation; }
/** * @param string $destination */ public function setExplicitDestination($destination) { Guard::againstNullAndEmpty('destination', $destination); $this->destination = $destination; }
/** * @param callable $prerequisiteSpecification * @param string $description */ protected function registerPrerequisite(callable $prerequisiteSpecification, $description) { Guard::againstNullAndEmpty('description', $description); $this->registeredPrerequisites[] = new Prerequisite($prerequisiteSpecification, $description); }
/** * @param string $messageId * @param OutboxTransportOperation[] $transportOperations */ public function __construct($messageId, array $transportOperations) { Guard::againstNullAndEmpty('messageId', $messageId); $this->messageId = $messageId; $this->transportOperations = $transportOperations; }
/** * @param string $destination */ public function overrideReplyToAddressOfIncomingMessage($destination) { Guard::againstNullAndEmpty('destination', $destination); $this->destination = $destination; }