From c059f1e7ddd73cf422f2ee47bbf65c488948a803 Mon Sep 17 00:00:00 2001 From: Antonio De Marco Date: Tue, 21 Jan 2025 12:42:48 +0100 Subject: [PATCH] EWPP-4991: Use CodeGeneratorEngineFactory. --- config/soap-client-authentication.php | 16 +- config/soap-client-notification.php | 12 +- config/soap-client-request.php | 9 +- .../Type/GetServiceTicket.php | 3 + .../Type/GetServiceTicketResponse.php | 2 + .../Assembler/NullableGetterAssembler.php | 108 -------- .../NullableGetterAssemblerOptions.php | 142 ---------- src/CodeGenerator/ConfigProcessor.php | 5 +- src/Notification/Type/DgtNotification.php | 62 ++--- .../Type/DgtNotificationResult.php | 14 +- src/Notification/Type/LinguisticRequest.php | 22 +- src/Notification/Type/Product.php | 66 ++--- src/Notification/Type/ProductReference.php | 20 +- src/Notification/Type/ReceiveNotification.php | 10 +- .../Type/ReceiveNotificationResponse.php | 10 +- src/Notification/Type/RequestReference.php | 36 +-- src/Request/RequestClassmap.php | 9 + src/Request/Type/AddNewPartToDossier.php | 40 +-- .../Type/AddNewPartToDossierResponse.php | 10 +- src/Request/Type/AuxiliaryDocumentOut.php | 56 ++-- src/Request/Type/AuxiliaryDocuments.php | 8 +- src/Request/Type/AuxiliaryDocumentsIn.php | 50 ++-- src/Request/Type/ContactPerson.php | 162 +++++++++++ src/Request/Type/ContactPersonIn.php | 18 +- src/Request/Type/ContactPersonOut.php | 64 ++--- src/Request/Type/Contacts.php | 8 +- src/Request/Type/CorrectionDetailsIn.php | 66 ++--- src/Request/Type/CorrectionReferenceIn.php | 10 +- src/Request/Type/CorrectionRequestOut.php | 20 +- src/Request/Type/CreateCorrectionRequest.php | 20 +- .../Type/CreateCorrectionRequestResponse.php | 10 +- src/Request/Type/CreateLinguisticRequest.php | 30 +-- .../Type/CreateLinguisticRequestResponse.php | 10 +- src/Request/Type/CreateNewVersion.php | 20 +- src/Request/Type/CreateNewVersionResponse.php | 10 +- src/Request/Type/DCO.php | 224 +++++++++++++++ src/Request/Type/DcoOut.php | 76 +++--- src/Request/Type/DocumentIn.php | 42 +-- src/Request/Type/Dossier.php | 100 +++++++ src/Request/Type/DossierReference.php | 30 +-- src/Request/Type/GetLinguisticRequest.php | 20 +- .../Type/GetLinguisticRequestResponse.php | 10 +- src/Request/Type/InformativeMessages.php | 6 +- src/Request/Type/LinguisticRequestIn.php | 20 +- src/Request/Type/LinguisticRequestOut.php | 30 +-- src/Request/Type/LinguisticSection.php | 38 +++ src/Request/Type/LinguisticSectionIn.php | 14 +- src/Request/Type/LinguisticSectionOut.php | 16 +- src/Request/Type/LinguisticSections.php | 8 +- src/Request/Type/LinquisticRequest.php | 100 +++++++ .../Type/ModifyAuxiliaryDocumentsIn.php | 40 +-- src/Request/Type/ModifyLinguisticRequest.php | 20 +- .../Type/ModifyLinguisticRequestIn.php | 20 +- .../Type/ModifyLinguisticRequestResponse.php | 10 +- src/Request/Type/ModifyProductRequestIn.php | 18 +- src/Request/Type/ModifyRequestDetailsIn.php | 24 +- src/Request/Type/ModifyRequestReferenceIn.php | 30 +-- src/Request/Type/NoSuchMethodException.php | 10 +- src/Request/Type/OriginalDocument.php | 193 +++++++++++++ src/Request/Type/OriginalDocumentIn.php | 40 +-- src/Request/Type/OriginalDocumentOut.php | 56 ++-- src/Request/Type/Product.php | 100 +++++++ src/Request/Type/ProductRequestIn.php | 24 +- src/Request/Type/ProductRequestOut.php | 60 ++--- src/Request/Type/Products.php | 8 +- src/Request/Type/PrtDocuments.php | 6 +- src/Request/Type/ReferenceDocuments.php | 6 +- src/Request/Type/RequestDetails.php | 100 +++++++ src/Request/Type/RequestDetailsIn.php | 206 +++++++------- src/Request/Type/RequestDetailsOut.php | 254 +++++++++--------- src/Request/Type/RequestReference.php | 100 +++++++ src/Request/Type/RequestReferenceIn.php | 30 +-- src/Request/Type/RequestReferenceOut.php | 42 +-- src/Request/Type/ResubmitRequest.php | 30 +-- src/Request/Type/ResubmitRequestResponse.php | 10 +- src/Request/Type/SrcDocumentIn.php | 32 +-- src/Request/Type/TraxDocuments.php | 6 +- .../Type/UnsupportedEncodingException.php | 10 +- src/Request/Type/UpdateCallbackUrl.php | 20 +- src/Request/Type/UpdateCallbackUrlOut.php | 44 +-- .../Type/UpdateCallbackUrlResponse.php | 10 +- 81 files changed, 2162 insertions(+), 1289 deletions(-) delete mode 100644 src/CodeGenerator/Assembler/NullableGetterAssembler.php delete mode 100644 src/CodeGenerator/Assembler/NullableGetterAssemblerOptions.php create mode 100644 src/Request/Type/ContactPerson.php create mode 100644 src/Request/Type/DCO.php create mode 100644 src/Request/Type/Dossier.php create mode 100644 src/Request/Type/LinguisticSection.php create mode 100644 src/Request/Type/LinquisticRequest.php create mode 100644 src/Request/Type/OriginalDocument.php create mode 100644 src/Request/Type/Product.php create mode 100644 src/Request/Type/RequestDetails.php create mode 100644 src/Request/Type/RequestReference.php diff --git a/config/soap-client-authentication.php b/config/soap-client-authentication.php index c3e2dbf8..e115fd82 100644 --- a/config/soap-client-authentication.php +++ b/config/soap-client-authentication.php @@ -3,20 +3,16 @@ use Phpro\SoapClient\CodeGenerator\Assembler; use Phpro\SoapClient\CodeGenerator\Rules; use Phpro\SoapClient\CodeGenerator\Config\Config; -use Soap\ExtSoapEngine\ExtSoapOptions; -use Phpro\SoapClient\Soap\DefaultEngineFactory; -use OpenEuropa\EPoetry\CodeGenerator as OpenEuropa; +use Phpro\SoapClient\Soap\CodeGeneratorEngineFactory; // Generate SOAP client library to perform ECAS client certificate login. // @link https://citnet.tech.ec.europa.eu/CITnet/confluence/display/IAM/ECAS+Certificate+Login // WSDL used for generating the SOAP codebase can be found here: // @link https://webgate.ec.europa.eu/cas/ws/CertLoginService.wsdl // The content returned by the URL above is stored locally in resources/authentication.wsdl. +$engine = CodeGeneratorEngineFactory::create('./resources/authentication.wsdl'); return Config::create() - ->setEngine($engine = DefaultEngineFactory::create( - ExtSoapOptions::defaults(__DIR__.'/../resources/authentication.wsdl', []) - ->disableWsdlCache() - )) + ->setEngine($engine) ->setTypeDestination('src/Authentication/ClientCertificate/Type') ->setTypeNamespace('OpenEuropa\EPoetry\Authentication\ClientCertificate\Type') ->setClientDestination('src/Authentication/ClientCertificate') @@ -25,12 +21,6 @@ ->setClassMapDestination('src/Authentication/ClientCertificate') ->setClassMapName('ClientCertificateClassmap') ->setClassMapNamespace('OpenEuropa\EPoetry\Authentication\ClientCertificate') - ->addRule(new Rules\AssembleRule( - new OpenEuropa\Assembler\OverridePropertyTypeAssembler( - (new OpenEuropa\Assembler\OverridePropertyTypeAssemblerOptions()) - ->setPropertyTypeMapping([]) - ) - )) ->addRule(new Rules\AssembleRule(new Assembler\GetterAssembler(new Assembler\GetterAssemblerOptions()))) ->addRule(new Rules\AssembleRule(new Assembler\ImmutableSetterAssembler( new Assembler\ImmutableSetterAssemblerOptions() diff --git a/config/soap-client-notification.php b/config/soap-client-notification.php index 8b3a75b8..fa2bc451 100644 --- a/config/soap-client-notification.php +++ b/config/soap-client-notification.php @@ -2,20 +2,18 @@ use OpenEuropa\EPoetry\CodeGenerator\ConfigProcessor; use Phpro\SoapClient\CodeGenerator\Config\Config; -use Soap\ExtSoapEngine\ExtSoapOptions; -use Phpro\SoapClient\Soap\DefaultEngineFactory; +use Phpro\SoapClient\Soap\CodeGeneratorEngineFactory; +$engine = CodeGeneratorEngineFactory::create('./resources/notification.wsdl'); $config = Config::create() - ->setEngine($engine = DefaultEngineFactory::create( - ExtSoapOptions::defaults('./resources/notification.wsdl', []) - ->disableWsdlCache() - )) + ->setEngine($engine) ->setTypeDestination('src/Notification/Type') ->setTypeNamespace('OpenEuropa\EPoetry\Notification\Type') ->setClientDestination('src/Notification/') ->setClientNamespace('OpenEuropa\EPoetry\Notification') ->setClassMapDestination('src/Notification/') ->setClassMapName('NotificationClassmap') - ->setClassMapNamespace('OpenEuropa\EPoetry\Notification'); + ->setClassMapNamespace('OpenEuropa\EPoetry\Notification') +; return ConfigProcessor::addRules($config); diff --git a/config/soap-client-request.php b/config/soap-client-request.php index 30dd8c69..5297132d 100644 --- a/config/soap-client-request.php +++ b/config/soap-client-request.php @@ -2,14 +2,11 @@ use OpenEuropa\EPoetry\CodeGenerator\ConfigProcessor; use Phpro\SoapClient\CodeGenerator\Config\Config; -use Soap\ExtSoapEngine\ExtSoapOptions; -use Phpro\SoapClient\Soap\DefaultEngineFactory; +use Phpro\SoapClient\Soap\CodeGeneratorEngineFactory; +$engine = CodeGeneratorEngineFactory::create('./resources/request.wsdl'); $config = Config::create() - ->setEngine($engine = DefaultEngineFactory::create( - ExtSoapOptions::defaults('./resources/request.wsdl', []) - ->disableWsdlCache() - )) + ->setEngine($engine) ->setTypeDestination('src/Request/Type') ->setTypeNamespace('OpenEuropa\EPoetry\Request\Type') ->setClientDestination('src/Request/') diff --git a/src/Authentication/ClientCertificate/Type/GetServiceTicket.php b/src/Authentication/ClientCertificate/Type/GetServiceTicket.php index e69b932c..3e67a8a3 100644 --- a/src/Authentication/ClientCertificate/Type/GetServiceTicket.php +++ b/src/Authentication/ClientCertificate/Type/GetServiceTicket.php @@ -7,6 +7,9 @@ class GetServiceTicket implements RequestInterface { /** + * The target service for which you want to obtain a service ticket. + * This must be a valid URL. + * * @var string */ private string $service; diff --git a/src/Authentication/ClientCertificate/Type/GetServiceTicketResponse.php b/src/Authentication/ClientCertificate/Type/GetServiceTicketResponse.php index f2ba019d..f47cbab7 100644 --- a/src/Authentication/ClientCertificate/Type/GetServiceTicketResponse.php +++ b/src/Authentication/ClientCertificate/Type/GetServiceTicketResponse.php @@ -7,6 +7,8 @@ class GetServiceTicketResponse implements ResultInterface { /** + * Service ticket for the specified service. + * * @var string */ private string $serviceTicket; diff --git a/src/CodeGenerator/Assembler/NullableGetterAssembler.php b/src/CodeGenerator/Assembler/NullableGetterAssembler.php deleted file mode 100644 index 063efa1a..00000000 --- a/src/CodeGenerator/Assembler/NullableGetterAssembler.php +++ /dev/null @@ -1,108 +0,0 @@ -options = $options ?? new NullableGetterAssemblerOptions(); - } - - /** - * {@inheritdoc} - */ - public function canAssemble(ContextInterface $context): bool - { - return $context instanceof PropertyContext; - } - - /** - * @param ContextInterface|PropertyContext $context - * - * @throws AssemblerException - */ - public function assemble(ContextInterface $context) - { - $class = $context->getClass(); - $property = $context->getProperty(); - - // Property might be forced to be nullable by the code generator. - if ($this->options->useOptionalValue()) { - $property = $property->withMeta(fn(TypeMeta $meta): TypeMeta => $meta->withIsNullable(true)); - } - - try { - $prefix = $this->getPrefix($property); - $methodName = Normalizer::generatePropertyMethod($prefix, $property->getName()); - $class->removeMethod($methodName); - - $methodGenerator = new MethodGenerator($methodName); - $methodGenerator->setVisibility(MethodGenerator::VISIBILITY_PUBLIC); - $methodGenerator->setBody(sprintf('return $this->%s;', $property->getName())); - - if ($this->options->useReturnType()) { - $returnType = $this->options->useReturnNull() ? '?' . $property->getPhpType() : $property->getPhpType(); - $methodGenerator->setReturnType($returnType); - } - - if ($this->options->useDocBlocks()) { - $propertyType = $this->options->useReturnNull() ? $property->getType() . '|null' : $property->getType(); - $methodGenerator->setDocBlock(DocBlockGeneratorFactory::fromArray([ - 'tags' => [ - [ - 'name' => 'return', - 'description' => $propertyType, - ], - ], - ])); - } - - $class->addMethodFromGenerator($methodGenerator); - } catch (\Exception $e) { - throw AssemblerException::fromException($e); - } - } - - /** - * @param Property $property - * @return non-empty-string - */ - public function getPrefix(Property $property): string - { - if (!$this->options->useBoolGetters()) { - return 'get'; - } - - return $property->getType() === 'bool' ? 'is' : 'get'; - } -} diff --git a/src/CodeGenerator/Assembler/NullableGetterAssemblerOptions.php b/src/CodeGenerator/Assembler/NullableGetterAssemblerOptions.php deleted file mode 100644 index a231739c..00000000 --- a/src/CodeGenerator/Assembler/NullableGetterAssemblerOptions.php +++ /dev/null @@ -1,142 +0,0 @@ -boolGetters = $boolGetters; - - return $new; - } - - /** - * @param bool $returnType - * - * @return NullableGetterAssemblerOptions - */ - public function withReturnType(bool $returnType = true): NullableGetterAssemblerOptions - { - $new = clone $this; - $new->returnType = $returnType; - - return $new; - } - - /** - * @return bool - */ - public function useBoolGetters(): bool - { - return $this->boolGetters; - } - - /** - * @return bool - */ - public function useReturnType(): bool - { - return $this->returnType; - } - - /** - * @param bool $withDocBlocks - * - * @return NullableGetterAssemblerOptions - */ - public function withDocBlocks(bool $withDocBlocks = true): NullableGetterAssemblerOptions - { - $new = clone $this; - $new->docBlocks = $withDocBlocks; - - return $new; - } - - /** - * @return bool - */ - public function useDocBlocks(): bool - { - return $this->docBlocks; - } - - public function withOptionalValue(bool $withOptionalValue = true): self - { - $new = clone $this; - $new->optionalValue = $withOptionalValue; - - return $new; - } - - public function useOptionalValue(): bool - { - return $this->optionalValue; - } - - /** - * @param bool $returnNull - * - * @return self - */ - public function withReturnNull(bool $returnNull = true): self - { - $new = clone $this; - $new->returnNull = $returnNull; - - return $new; - } - - /** - * @return bool - */ - public function useReturnNull(): bool - { - return $this->returnNull; - } -} diff --git a/src/CodeGenerator/ConfigProcessor.php b/src/CodeGenerator/ConfigProcessor.php index 025d1b2b..9401e10a 100644 --- a/src/CodeGenerator/ConfigProcessor.php +++ b/src/CodeGenerator/ConfigProcessor.php @@ -59,11 +59,10 @@ public static function addRules(Config $config, array $specialClassesAndProperti ->whitelist($specialClassesAndProperties) ); - $defaultGetterAssembler = new OpenEuropa\Assembler\NullableGetterAssembler( - OpenEuropa\Assembler\NullableGetterAssemblerOptions::create() + $defaultGetterAssembler = new Assembler\GetterAssembler( + Assembler\GetterAssemblerOptions::create() ->withReturnType() ->withBoolGetters() - ->withReturnNull() ); $arrayGetterAssembler = new OpenEuropa\Assembler\ArrayGetterAssembler( diff --git a/src/Notification/Type/DgtNotification.php b/src/Notification/Type/DgtNotification.php index 46468279..5eac556c 100644 --- a/src/Notification/Type/DgtNotification.php +++ b/src/Notification/Type/DgtNotification.php @@ -5,49 +5,49 @@ class DgtNotification { /** - * @var \OpenEuropa\EPoetry\Notification\Type\NotificationType + * @var null | 'RequestStatusChange' | 'ProductStatusChange' | 'ProductDelivery' | 'CorrectionStatusChange' */ - private $notificationType; + private $notificationType = null; /** - * @var \OpenEuropa\EPoetry\Notification\Type\LinguisticRequest + * @var null | \OpenEuropa\EPoetry\Notification\Type\LinguisticRequest */ - private $linguisticRequest; + private $linguisticRequest = null; /** - * @var \OpenEuropa\EPoetry\Notification\Type\Product + * @var null | \OpenEuropa\EPoetry\Notification\Type\Product */ - private $product; + private $product = null; /** - * @var string + * @var null | string */ - private $message; + private $message = null; /** - * @var string + * @var null | string */ - private $planningAgent; + private $planningAgent = null; /** - * @var string + * @var null | string */ - private $planningSector; + private $planningSector = null; /** - * @param \OpenEuropa\EPoetry\Notification\Type\NotificationType $notificationType + * @param null | 'RequestStatusChange' | 'ProductStatusChange' | 'ProductDelivery' | 'CorrectionStatusChange' $notificationType * @return $this */ - public function setNotificationType(\OpenEuropa\EPoetry\Notification\Type\NotificationType $notificationType) : static + public function setNotificationType(?string $notificationType) : static { $this->notificationType = $notificationType; return $this; } /** - * @return \OpenEuropa\EPoetry\Notification\Type\NotificationType|null + * @return null | 'RequestStatusChange' | 'ProductStatusChange' | 'ProductDelivery' | 'CorrectionStatusChange' */ - public function getNotificationType() : ?\OpenEuropa\EPoetry\Notification\Type\NotificationType + public function getNotificationType() : ?string { return $this->notificationType; } @@ -61,17 +61,17 @@ public function hasNotificationType() : bool } /** - * @param \OpenEuropa\EPoetry\Notification\Type\LinguisticRequest $linguisticRequest + * @param null | \OpenEuropa\EPoetry\Notification\Type\LinguisticRequest $linguisticRequest * @return $this */ - public function setLinguisticRequest(\OpenEuropa\EPoetry\Notification\Type\LinguisticRequest $linguisticRequest) : static + public function setLinguisticRequest(?\OpenEuropa\EPoetry\Notification\Type\LinguisticRequest $linguisticRequest) : static { $this->linguisticRequest = $linguisticRequest; return $this; } /** - * @return \OpenEuropa\EPoetry\Notification\Type\LinguisticRequest|null + * @return null | \OpenEuropa\EPoetry\Notification\Type\LinguisticRequest */ public function getLinguisticRequest() : ?\OpenEuropa\EPoetry\Notification\Type\LinguisticRequest { @@ -87,17 +87,17 @@ public function hasLinguisticRequest() : bool } /** - * @param \OpenEuropa\EPoetry\Notification\Type\Product $product + * @param null | \OpenEuropa\EPoetry\Notification\Type\Product $product * @return $this */ - public function setProduct(\OpenEuropa\EPoetry\Notification\Type\Product $product) : static + public function setProduct(?\OpenEuropa\EPoetry\Notification\Type\Product $product) : static { $this->product = $product; return $this; } /** - * @return \OpenEuropa\EPoetry\Notification\Type\Product|null + * @return null | \OpenEuropa\EPoetry\Notification\Type\Product */ public function getProduct() : ?\OpenEuropa\EPoetry\Notification\Type\Product { @@ -113,17 +113,17 @@ public function hasProduct() : bool } /** - * @param string $message + * @param null | string $message * @return $this */ - public function setMessage(string $message) : static + public function setMessage(?string $message) : static { $this->message = $message; return $this; } /** - * @return string|null + * @return null | string */ public function getMessage() : ?string { @@ -139,17 +139,17 @@ public function hasMessage() : bool } /** - * @param string $planningAgent + * @param null | string $planningAgent * @return $this */ - public function setPlanningAgent(string $planningAgent) : static + public function setPlanningAgent(?string $planningAgent) : static { $this->planningAgent = $planningAgent; return $this; } /** - * @return string|null + * @return null | string */ public function getPlanningAgent() : ?string { @@ -165,17 +165,17 @@ public function hasPlanningAgent() : bool } /** - * @param string $planningSector + * @param null | string $planningSector * @return $this */ - public function setPlanningSector(string $planningSector) : static + public function setPlanningSector(?string $planningSector) : static { $this->planningSector = $planningSector; return $this; } /** - * @return string|null + * @return null | string */ public function getPlanningSector() : ?string { diff --git a/src/Notification/Type/DgtNotificationResult.php b/src/Notification/Type/DgtNotificationResult.php index fa0c88f5..cc6fe898 100644 --- a/src/Notification/Type/DgtNotificationResult.php +++ b/src/Notification/Type/DgtNotificationResult.php @@ -10,9 +10,9 @@ class DgtNotificationResult private $success; /** - * @var string + * @var null | string */ - private $message; + private $message = null; /** * @param bool $success @@ -25,9 +25,9 @@ public function setSuccess(bool $success) : static } /** - * @return bool|null + * @return bool */ - public function isSuccess() : ?bool + public function isSuccess() : bool { return $this->success; } @@ -41,17 +41,17 @@ public function hasSuccess() : bool } /** - * @param string $message + * @param null | string $message * @return $this */ - public function setMessage(string $message) : static + public function setMessage(?string $message) : static { $this->message = $message; return $this; } /** - * @return string|null + * @return null | string */ public function getMessage() : ?string { diff --git a/src/Notification/Type/LinguisticRequest.php b/src/Notification/Type/LinguisticRequest.php index d2a2d28d..e52bc6f5 100644 --- a/src/Notification/Type/LinguisticRequest.php +++ b/src/Notification/Type/LinguisticRequest.php @@ -5,27 +5,27 @@ class LinguisticRequest { /** - * @var \OpenEuropa\EPoetry\Notification\Type\RequestReference + * @var null | \OpenEuropa\EPoetry\Notification\Type\RequestReference */ - private $requestReference; + private $requestReference = null; /** - * @var \OpenEuropa\EPoetry\Notification\Type\RequestStatus + * @var null | 'Accepted' | 'Rejected' | 'Executed' | 'Suspended' | 'Cancelled' | 'Validated' */ - private $status; + private $status = null; /** - * @param \OpenEuropa\EPoetry\Notification\Type\RequestReference $requestReference + * @param null | \OpenEuropa\EPoetry\Notification\Type\RequestReference $requestReference * @return $this */ - public function setRequestReference(\OpenEuropa\EPoetry\Notification\Type\RequestReference $requestReference) : static + public function setRequestReference(?\OpenEuropa\EPoetry\Notification\Type\RequestReference $requestReference) : static { $this->requestReference = $requestReference; return $this; } /** - * @return \OpenEuropa\EPoetry\Notification\Type\RequestReference|null + * @return null | \OpenEuropa\EPoetry\Notification\Type\RequestReference */ public function getRequestReference() : ?\OpenEuropa\EPoetry\Notification\Type\RequestReference { @@ -41,19 +41,19 @@ public function hasRequestReference() : bool } /** - * @param \OpenEuropa\EPoetry\Notification\Type\RequestStatus $status + * @param null | 'Accepted' | 'Rejected' | 'Executed' | 'Suspended' | 'Cancelled' | 'Validated' $status * @return $this */ - public function setStatus(\OpenEuropa\EPoetry\Notification\Type\RequestStatus $status) : static + public function setStatus(?string $status) : static { $this->status = $status; return $this; } /** - * @return \OpenEuropa\EPoetry\Notification\Type\RequestStatus|null + * @return null | 'Accepted' | 'Rejected' | 'Executed' | 'Suspended' | 'Cancelled' | 'Validated' */ - public function getStatus() : ?\OpenEuropa\EPoetry\Notification\Type\RequestStatus + public function getStatus() : ?string { return $this->status; } diff --git a/src/Notification/Type/Product.php b/src/Notification/Type/Product.php index 7081623e..7a77329d 100644 --- a/src/Notification/Type/Product.php +++ b/src/Notification/Type/Product.php @@ -5,47 +5,47 @@ class Product { /** - * @var \OpenEuropa\EPoetry\Notification\Type\ProductReference + * @var null | \OpenEuropa\EPoetry\Notification\Type\ProductReference */ - private $productReference; + private $productReference = null; /** - * @var \OpenEuropa\EPoetry\Notification\Type\ProductStatus + * @var null | 'Accepted' | 'Closed' | 'Ongoing' | 'ReadyToBeSent' | 'Suspended' | 'Cancelled' | 'Sent' | 'Rejected' | 'Requested' | 'Invalid' */ - private $status; + private $status = null; /** - * @var \DateTimeInterface + * @var null | \DateTimeInterface */ - private $acceptedDeadline; + private $acceptedDeadline = null; /** - * @var \OpenEuropa\EPoetry\Notification\Type\Base64Binary + * @var null | mixed */ - private $file; + private $file = null; /** - * @var string + * @var null | string */ - private $name; + private $name = null; /** - * @var \OpenEuropa\EPoetry\Notification\Type\DocumentFormat + * @var null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' */ - private $format; + private $format = null; /** - * @param \OpenEuropa\EPoetry\Notification\Type\ProductReference $productReference + * @param null | \OpenEuropa\EPoetry\Notification\Type\ProductReference $productReference * @return $this */ - public function setProductReference(\OpenEuropa\EPoetry\Notification\Type\ProductReference $productReference) : static + public function setProductReference(?\OpenEuropa\EPoetry\Notification\Type\ProductReference $productReference) : static { $this->productReference = $productReference; return $this; } /** - * @return \OpenEuropa\EPoetry\Notification\Type\ProductReference|null + * @return null | \OpenEuropa\EPoetry\Notification\Type\ProductReference */ public function getProductReference() : ?\OpenEuropa\EPoetry\Notification\Type\ProductReference { @@ -61,19 +61,19 @@ public function hasProductReference() : bool } /** - * @param \OpenEuropa\EPoetry\Notification\Type\ProductStatus $status + * @param null | 'Accepted' | 'Closed' | 'Ongoing' | 'ReadyToBeSent' | 'Suspended' | 'Cancelled' | 'Sent' | 'Rejected' | 'Requested' | 'Invalid' $status * @return $this */ - public function setStatus(\OpenEuropa\EPoetry\Notification\Type\ProductStatus $status) : static + public function setStatus(?string $status) : static { $this->status = $status; return $this; } /** - * @return \OpenEuropa\EPoetry\Notification\Type\ProductStatus|null + * @return null | 'Accepted' | 'Closed' | 'Ongoing' | 'ReadyToBeSent' | 'Suspended' | 'Cancelled' | 'Sent' | 'Rejected' | 'Requested' | 'Invalid' */ - public function getStatus() : ?\OpenEuropa\EPoetry\Notification\Type\ProductStatus + public function getStatus() : ?string { return $this->status; } @@ -87,17 +87,17 @@ public function hasStatus() : bool } /** - * @param \DateTimeInterface $acceptedDeadline + * @param null | \DateTimeInterface $acceptedDeadline * @return $this */ - public function setAcceptedDeadline(\DateTimeInterface $acceptedDeadline) : static + public function setAcceptedDeadline(?\DateTimeInterface $acceptedDeadline) : static { $this->acceptedDeadline = $acceptedDeadline; return $this; } /** - * @return \DateTimeInterface|null + * @return null | \DateTimeInterface */ public function getAcceptedDeadline() : ?\DateTimeInterface { @@ -113,19 +113,19 @@ public function hasAcceptedDeadline() : bool } /** - * @param \OpenEuropa\EPoetry\Notification\Type\Base64Binary $file + * @param null | mixed $file * @return $this */ - public function setFile(\OpenEuropa\EPoetry\Notification\Type\Base64Binary $file) : static + public function setFile(mixed $file) : static { $this->file = $file; return $this; } /** - * @return \OpenEuropa\EPoetry\Notification\Type\Base64Binary|null + * @return null | mixed */ - public function getFile() : ?\OpenEuropa\EPoetry\Notification\Type\Base64Binary + public function getFile() : mixed { return $this->file; } @@ -139,17 +139,17 @@ public function hasFile() : bool } /** - * @param string $name + * @param null | string $name * @return $this */ - public function setName(string $name) : static + public function setName(?string $name) : static { $this->name = $name; return $this; } /** - * @return string|null + * @return null | string */ public function getName() : ?string { @@ -165,19 +165,19 @@ public function hasName() : bool } /** - * @param \OpenEuropa\EPoetry\Notification\Type\DocumentFormat $format + * @param null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' $format * @return $this */ - public function setFormat(\OpenEuropa\EPoetry\Notification\Type\DocumentFormat $format) : static + public function setFormat(?string $format) : static { $this->format = $format; return $this; } /** - * @return \OpenEuropa\EPoetry\Notification\Type\DocumentFormat|null + * @return null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' */ - public function getFormat() : ?\OpenEuropa\EPoetry\Notification\Type\DocumentFormat + public function getFormat() : ?string { return $this->format; } diff --git a/src/Notification/Type/ProductReference.php b/src/Notification/Type/ProductReference.php index 1720b2b9..b5a74832 100644 --- a/src/Notification/Type/ProductReference.php +++ b/src/Notification/Type/ProductReference.php @@ -5,27 +5,27 @@ class ProductReference { /** - * @var \OpenEuropa\EPoetry\Notification\Type\RequestReference + * @var null | \OpenEuropa\EPoetry\Notification\Type\RequestReference */ - private $requestReference; + private $requestReference = null; /** - * @var string + * @var null | string */ - private $language; + private $language = null; /** - * @param \OpenEuropa\EPoetry\Notification\Type\RequestReference $requestReference + * @param null | \OpenEuropa\EPoetry\Notification\Type\RequestReference $requestReference * @return $this */ - public function setRequestReference(\OpenEuropa\EPoetry\Notification\Type\RequestReference $requestReference) : static + public function setRequestReference(?\OpenEuropa\EPoetry\Notification\Type\RequestReference $requestReference) : static { $this->requestReference = $requestReference; return $this; } /** - * @return \OpenEuropa\EPoetry\Notification\Type\RequestReference|null + * @return null | \OpenEuropa\EPoetry\Notification\Type\RequestReference */ public function getRequestReference() : ?\OpenEuropa\EPoetry\Notification\Type\RequestReference { @@ -41,17 +41,17 @@ public function hasRequestReference() : bool } /** - * @param string $language + * @param null | string $language * @return $this */ - public function setLanguage(string $language) : static + public function setLanguage(?string $language) : static { $this->language = $language; return $this; } /** - * @return string|null + * @return null | string */ public function getLanguage() : ?string { diff --git a/src/Notification/Type/ReceiveNotification.php b/src/Notification/Type/ReceiveNotification.php index aee07372..c5ac006f 100644 --- a/src/Notification/Type/ReceiveNotification.php +++ b/src/Notification/Type/ReceiveNotification.php @@ -7,22 +7,22 @@ class ReceiveNotification implements RequestInterface { /** - * @var \OpenEuropa\EPoetry\Notification\Type\DgtNotification + * @var null | \OpenEuropa\EPoetry\Notification\Type\DgtNotification */ - private $notification; + private $notification = null; /** - * @param \OpenEuropa\EPoetry\Notification\Type\DgtNotification $notification + * @param null | \OpenEuropa\EPoetry\Notification\Type\DgtNotification $notification * @return $this */ - public function setNotification(\OpenEuropa\EPoetry\Notification\Type\DgtNotification $notification) : static + public function setNotification(?\OpenEuropa\EPoetry\Notification\Type\DgtNotification $notification) : static { $this->notification = $notification; return $this; } /** - * @return \OpenEuropa\EPoetry\Notification\Type\DgtNotification|null + * @return null | \OpenEuropa\EPoetry\Notification\Type\DgtNotification */ public function getNotification() : ?\OpenEuropa\EPoetry\Notification\Type\DgtNotification { diff --git a/src/Notification/Type/ReceiveNotificationResponse.php b/src/Notification/Type/ReceiveNotificationResponse.php index 421afcae..e8653448 100644 --- a/src/Notification/Type/ReceiveNotificationResponse.php +++ b/src/Notification/Type/ReceiveNotificationResponse.php @@ -7,22 +7,22 @@ class ReceiveNotificationResponse implements ResultInterface { /** - * @var \OpenEuropa\EPoetry\Notification\Type\DgtNotificationResult + * @var null | \OpenEuropa\EPoetry\Notification\Type\DgtNotificationResult */ - private $return; + private $return = null; /** - * @param \OpenEuropa\EPoetry\Notification\Type\DgtNotificationResult $return + * @param null | \OpenEuropa\EPoetry\Notification\Type\DgtNotificationResult $return * @return $this */ - public function setReturn(\OpenEuropa\EPoetry\Notification\Type\DgtNotificationResult $return) : static + public function setReturn(?\OpenEuropa\EPoetry\Notification\Type\DgtNotificationResult $return) : static { $this->return = $return; return $this; } /** - * @return \OpenEuropa\EPoetry\Notification\Type\DgtNotificationResult|null + * @return null | \OpenEuropa\EPoetry\Notification\Type\DgtNotificationResult */ public function getReturn() : ?\OpenEuropa\EPoetry\Notification\Type\DgtNotificationResult { diff --git a/src/Notification/Type/RequestReference.php b/src/Notification/Type/RequestReference.php index 095737d2..e7bdb9c0 100644 --- a/src/Notification/Type/RequestReference.php +++ b/src/Notification/Type/RequestReference.php @@ -5,9 +5,9 @@ class RequestReference { /** - * @var string + * @var null | string */ - private $requesterCode; + private $requesterCode = null; /** * @var int @@ -30,22 +30,22 @@ class RequestReference private $version; /** - * @var string + * @var null | string */ - private $productType; + private $productType = null; /** - * @param string $requesterCode + * @param null | string $requesterCode * @return $this */ - public function setRequesterCode(string $requesterCode) : static + public function setRequesterCode(?string $requesterCode) : static { $this->requesterCode = $requesterCode; return $this; } /** - * @return string|null + * @return null | string */ public function getRequesterCode() : ?string { @@ -71,9 +71,9 @@ public function setYear(int $year) : static } /** - * @return int|null + * @return int */ - public function getYear() : ?int + public function getYear() : int { return $this->year; } @@ -97,9 +97,9 @@ public function setNumber(int $number) : static } /** - * @return int|null + * @return int */ - public function getNumber() : ?int + public function getNumber() : int { return $this->number; } @@ -123,9 +123,9 @@ public function setPart(int $part) : static } /** - * @return int|null + * @return int */ - public function getPart() : ?int + public function getPart() : int { return $this->part; } @@ -149,9 +149,9 @@ public function setVersion(int $version) : static } /** - * @return int|null + * @return int */ - public function getVersion() : ?int + public function getVersion() : int { return $this->version; } @@ -165,17 +165,17 @@ public function hasVersion() : bool } /** - * @param string $productType + * @param null | string $productType * @return $this */ - public function setProductType(string $productType) : static + public function setProductType(?string $productType) : static { $this->productType = $productType; return $this; } /** - * @return string|null + * @return null | string */ public function getProductType() : ?string { diff --git a/src/Request/RequestClassmap.php b/src/Request/RequestClassmap.php index e015b5b4..f5b33b23 100644 --- a/src/Request/RequestClassmap.php +++ b/src/Request/RequestClassmap.php @@ -66,6 +66,15 @@ public static function getCollection() : \Soap\ExtSoapEngine\Configuration\Class new ClassMap('modifyProductRequestIn', Type\ModifyProductRequestIn::class), new ClassMap('modifyAuxiliaryDocumentsIn', Type\ModifyAuxiliaryDocumentsIn::class), new ClassMap('updateCallbackUrlOut', Type\UpdateCallbackUrlOut::class), + new ClassMap('dossier', Type\Dossier::class), + new ClassMap('requestDetails', Type\RequestDetails::class), + new ClassMap('originalDocument', Type\OriginalDocument::class), + new ClassMap('linguisticSection', Type\LinguisticSection::class), + new ClassMap('product', Type\Product::class), + new ClassMap('linquisticRequest', Type\LinquisticRequest::class), + new ClassMap('requestReference', Type\RequestReference::class), + new ClassMap('contactPerson', Type\ContactPerson::class), + new ClassMap('DCO', Type\DCO::class), ); } } diff --git a/src/Request/Type/AddNewPartToDossier.php b/src/Request/Type/AddNewPartToDossier.php index 63a234f2..84a314bb 100644 --- a/src/Request/Type/AddNewPartToDossier.php +++ b/src/Request/Type/AddNewPartToDossier.php @@ -7,37 +7,37 @@ class AddNewPartToDossier implements RequestInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\DossierReference + * @var null | \OpenEuropa\EPoetry\Request\Type\DossierReference */ - private $dossier; + private $dossier = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn + * @var null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn */ - private $requestDetails; + private $requestDetails = null; /** - * @var string + * @var null | string */ - private $applicationName; + private $applicationName = null; /** - * @var string + * @var null | string */ - private $templateName; + private $templateName = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\DossierReference $dossier + * @param null | \OpenEuropa\EPoetry\Request\Type\DossierReference $dossier * @return $this */ - public function setDossier(\OpenEuropa\EPoetry\Request\Type\DossierReference $dossier) : static + public function setDossier(?\OpenEuropa\EPoetry\Request\Type\DossierReference $dossier) : static { $this->dossier = $dossier; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\DossierReference|null + * @return null | \OpenEuropa\EPoetry\Request\Type\DossierReference */ public function getDossier() : ?\OpenEuropa\EPoetry\Request\Type\DossierReference { @@ -53,17 +53,17 @@ public function hasDossier() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn $requestDetails + * @param null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn $requestDetails * @return $this */ - public function setRequestDetails(\OpenEuropa\EPoetry\Request\Type\RequestDetailsIn $requestDetails) : static + public function setRequestDetails(?\OpenEuropa\EPoetry\Request\Type\RequestDetailsIn $requestDetails) : static { $this->requestDetails = $requestDetails; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn */ public function getRequestDetails() : ?\OpenEuropa\EPoetry\Request\Type\RequestDetailsIn { @@ -79,17 +79,17 @@ public function hasRequestDetails() : bool } /** - * @param string $applicationName + * @param null | string $applicationName * @return $this */ - public function setApplicationName(string $applicationName) : static + public function setApplicationName(?string $applicationName) : static { $this->applicationName = $applicationName; return $this; } /** - * @return string|null + * @return null | string */ public function getApplicationName() : ?string { @@ -105,17 +105,17 @@ public function hasApplicationName() : bool } /** - * @param string $templateName + * @param null | string $templateName * @return $this */ - public function setTemplateName(string $templateName) : static + public function setTemplateName(?string $templateName) : static { $this->templateName = $templateName; return $this; } /** - * @return string|null + * @return null | string */ public function getTemplateName() : ?string { diff --git a/src/Request/Type/AddNewPartToDossierResponse.php b/src/Request/Type/AddNewPartToDossierResponse.php index 4545df3d..0c078978 100644 --- a/src/Request/Type/AddNewPartToDossierResponse.php +++ b/src/Request/Type/AddNewPartToDossierResponse.php @@ -7,22 +7,22 @@ class AddNewPartToDossierResponse implements ResultInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut + * @var null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut */ - private $return; + private $return = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return + * @param null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return * @return $this */ - public function setReturn(\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return) : static + public function setReturn(?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return) : static { $this->return = $return; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut|null + * @return null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut */ public function getReturn() : ?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut { diff --git a/src/Request/Type/AuxiliaryDocumentOut.php b/src/Request/Type/AuxiliaryDocumentOut.php index aec8f7fc..2490993e 100644 --- a/src/Request/Type/AuxiliaryDocumentOut.php +++ b/src/Request/Type/AuxiliaryDocumentOut.php @@ -5,42 +5,42 @@ class AuxiliaryDocumentOut { /** - * @var string + * @var null | string */ - private $fileName; + private $fileName = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Language + * @var null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - private $language; + private $language = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\DocumentType + * @var null | 'ORI' | 'REF' | 'SRC' | 'TRAX' | 'SPOT' | 'DCO' | 'PRT' */ - private $documentType; + private $documentType = null; /** - * @var string + * @var null | string */ - private $comment; + private $comment = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\DocumentFormat + * @var null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' */ - private $format; + private $format = null; /** - * @param string $fileName + * @param null | string $fileName * @return $this */ - public function setFileName(string $fileName) : static + public function setFileName(?string $fileName) : static { $this->fileName = $fileName; return $this; } /** - * @return string|null + * @return null | string */ public function getFileName() : ?string { @@ -56,19 +56,19 @@ public function hasFileName() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Language $language + * @param null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' $language * @return $this */ - public function setLanguage(\OpenEuropa\EPoetry\Request\Type\Language $language) : static + public function setLanguage(?string $language) : static { $this->language = $language; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Language|null + * @return null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - public function getLanguage() : ?\OpenEuropa\EPoetry\Request\Type\Language + public function getLanguage() : ?string { return $this->language; } @@ -82,19 +82,19 @@ public function hasLanguage() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\DocumentType $documentType + * @param null | 'ORI' | 'REF' | 'SRC' | 'TRAX' | 'SPOT' | 'DCO' | 'PRT' $documentType * @return $this */ - public function setDocumentType(\OpenEuropa\EPoetry\Request\Type\DocumentType $documentType) : static + public function setDocumentType(?string $documentType) : static { $this->documentType = $documentType; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\DocumentType|null + * @return null | 'ORI' | 'REF' | 'SRC' | 'TRAX' | 'SPOT' | 'DCO' | 'PRT' */ - public function getDocumentType() : ?\OpenEuropa\EPoetry\Request\Type\DocumentType + public function getDocumentType() : ?string { return $this->documentType; } @@ -108,17 +108,17 @@ public function hasDocumentType() : bool } /** - * @param string $comment + * @param null | string $comment * @return $this */ - public function setComment(string $comment) : static + public function setComment(?string $comment) : static { $this->comment = $comment; return $this; } /** - * @return string|null + * @return null | string */ public function getComment() : ?string { @@ -134,19 +134,19 @@ public function hasComment() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\DocumentFormat $format + * @param null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' $format * @return $this */ - public function setFormat(\OpenEuropa\EPoetry\Request\Type\DocumentFormat $format) : static + public function setFormat(?string $format) : static { $this->format = $format; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\DocumentFormat|null + * @return null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' */ - public function getFormat() : ?\OpenEuropa\EPoetry\Request\Type\DocumentFormat + public function getFormat() : ?string { return $this->format; } diff --git a/src/Request/Type/AuxiliaryDocuments.php b/src/Request/Type/AuxiliaryDocuments.php index 231ac96e..dddbdfe9 100644 --- a/src/Request/Type/AuxiliaryDocuments.php +++ b/src/Request/Type/AuxiliaryDocuments.php @@ -5,12 +5,13 @@ class AuxiliaryDocuments { /** - * @var \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocumentOut[]|array + * @var array, + * \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocumentOut[]|array> */ private $document = []; /** - * @param AuxiliaryDocumentOut[] $document + * @param array, AuxiliaryDocumentOut[]> $document * @return $this */ public function setDocument(array $document) : static @@ -20,7 +21,8 @@ public function setDocument(array $document) : static } /** - * @return \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocumentOut[]|array|null + * @return array, + * \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocumentOut[]|array> */ public function getDocument() : ?array { diff --git a/src/Request/Type/AuxiliaryDocumentsIn.php b/src/Request/Type/AuxiliaryDocumentsIn.php index 6763ae2a..2d8a44d5 100644 --- a/src/Request/Type/AuxiliaryDocumentsIn.php +++ b/src/Request/Type/AuxiliaryDocumentsIn.php @@ -5,42 +5,42 @@ class AuxiliaryDocumentsIn { /** - * @var \OpenEuropa\EPoetry\Request\Type\ReferenceDocuments + * @var null | \OpenEuropa\EPoetry\Request\Type\ReferenceDocuments */ - private $referenceDocuments; + private $referenceDocuments = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\TraxDocuments + * @var null | \OpenEuropa\EPoetry\Request\Type\TraxDocuments */ - private $traxDocuments; + private $traxDocuments = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\DocumentIn + * @var null | \OpenEuropa\EPoetry\Request\Type\DocumentIn */ - private $spotDocument; + private $spotDocument = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\PrtDocuments + * @var null | \OpenEuropa\EPoetry\Request\Type\PrtDocuments */ - private $prtDocuments; + private $prtDocuments = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\SrcDocumentIn + * @var null | \OpenEuropa\EPoetry\Request\Type\SrcDocumentIn */ - private $srcDocument; + private $srcDocument = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\ReferenceDocuments $referenceDocuments + * @param null | \OpenEuropa\EPoetry\Request\Type\ReferenceDocuments $referenceDocuments * @return $this */ - public function setReferenceDocuments(\OpenEuropa\EPoetry\Request\Type\ReferenceDocuments $referenceDocuments) : static + public function setReferenceDocuments(?\OpenEuropa\EPoetry\Request\Type\ReferenceDocuments $referenceDocuments) : static { $this->referenceDocuments = $referenceDocuments; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\ReferenceDocuments|null + * @return null | \OpenEuropa\EPoetry\Request\Type\ReferenceDocuments */ public function getReferenceDocuments() : ?\OpenEuropa\EPoetry\Request\Type\ReferenceDocuments { @@ -56,17 +56,17 @@ public function hasReferenceDocuments() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\TraxDocuments $traxDocuments + * @param null | \OpenEuropa\EPoetry\Request\Type\TraxDocuments $traxDocuments * @return $this */ - public function setTraxDocuments(\OpenEuropa\EPoetry\Request\Type\TraxDocuments $traxDocuments) : static + public function setTraxDocuments(?\OpenEuropa\EPoetry\Request\Type\TraxDocuments $traxDocuments) : static { $this->traxDocuments = $traxDocuments; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\TraxDocuments|null + * @return null | \OpenEuropa\EPoetry\Request\Type\TraxDocuments */ public function getTraxDocuments() : ?\OpenEuropa\EPoetry\Request\Type\TraxDocuments { @@ -82,17 +82,17 @@ public function hasTraxDocuments() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\DocumentIn $spotDocument + * @param null | \OpenEuropa\EPoetry\Request\Type\DocumentIn $spotDocument * @return $this */ - public function setSpotDocument(\OpenEuropa\EPoetry\Request\Type\DocumentIn $spotDocument) : static + public function setSpotDocument(?\OpenEuropa\EPoetry\Request\Type\DocumentIn $spotDocument) : static { $this->spotDocument = $spotDocument; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\DocumentIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\DocumentIn */ public function getSpotDocument() : ?\OpenEuropa\EPoetry\Request\Type\DocumentIn { @@ -108,17 +108,17 @@ public function hasSpotDocument() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\PrtDocuments $prtDocuments + * @param null | \OpenEuropa\EPoetry\Request\Type\PrtDocuments $prtDocuments * @return $this */ - public function setPrtDocuments(\OpenEuropa\EPoetry\Request\Type\PrtDocuments $prtDocuments) : static + public function setPrtDocuments(?\OpenEuropa\EPoetry\Request\Type\PrtDocuments $prtDocuments) : static { $this->prtDocuments = $prtDocuments; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\PrtDocuments|null + * @return null | \OpenEuropa\EPoetry\Request\Type\PrtDocuments */ public function getPrtDocuments() : ?\OpenEuropa\EPoetry\Request\Type\PrtDocuments { @@ -134,17 +134,17 @@ public function hasPrtDocuments() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\SrcDocumentIn $srcDocument + * @param null | \OpenEuropa\EPoetry\Request\Type\SrcDocumentIn $srcDocument * @return $this */ - public function setSrcDocument(\OpenEuropa\EPoetry\Request\Type\SrcDocumentIn $srcDocument) : static + public function setSrcDocument(?\OpenEuropa\EPoetry\Request\Type\SrcDocumentIn $srcDocument) : static { $this->srcDocument = $srcDocument; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\SrcDocumentIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\SrcDocumentIn */ public function getSrcDocument() : ?\OpenEuropa\EPoetry\Request\Type\SrcDocumentIn { diff --git a/src/Request/Type/ContactPerson.php b/src/Request/Type/ContactPerson.php new file mode 100644 index 00000000..4bb438de --- /dev/null +++ b/src/Request/Type/ContactPerson.php @@ -0,0 +1,162 @@ +firstName = $firstName; + return $this; + } + + /** + * @return null | string + */ + public function getFirstName() : ?string + { + return $this->firstName; + } + + /** + * @return bool + */ + public function hasFirstName() : bool + { + return !empty($this->firstName); + } + + /** + * @param null | string $lastName + * @return $this + */ + public function setLastName(?string $lastName) : static + { + $this->lastName = $lastName; + return $this; + } + + /** + * @return null | string + */ + public function getLastName() : ?string + { + return $this->lastName; + } + + /** + * @return bool + */ + public function hasLastName() : bool + { + return !empty($this->lastName); + } + + /** + * @param null | string $email + * @return $this + */ + public function setEmail(?string $email) : static + { + $this->email = $email; + return $this; + } + + /** + * @return null | string + */ + public function getEmail() : ?string + { + return $this->email; + } + + /** + * @return bool + */ + public function hasEmail() : bool + { + return !empty($this->email); + } + + /** + * @param null | string $userId + * @return $this + */ + public function setUserId(?string $userId) : static + { + $this->userId = $userId; + return $this; + } + + /** + * @return null | string + */ + public function getUserId() : ?string + { + return $this->userId; + } + + /** + * @return bool + */ + public function hasUserId() : bool + { + return !empty($this->userId); + } + + /** + * @param null | 'REQUESTER' | 'AUTHOR' | 'RECIPIENT' | 'WEBMASTER' | 'EDITOR' | 'DOCUMENT_AUTHOR' | 'DOSSIER_AUTHOR' | 'LEGISLATIVE_COORDINATOR' | 'SECRETARY' | 'CONTACT_PERSON' $roleCode + * @return $this + */ + public function setRoleCode(?string $roleCode) : static + { + $this->roleCode = $roleCode; + return $this; + } + + /** + * @return null | 'REQUESTER' | 'AUTHOR' | 'RECIPIENT' | 'WEBMASTER' | 'EDITOR' | 'DOCUMENT_AUTHOR' | 'DOSSIER_AUTHOR' | 'LEGISLATIVE_COORDINATOR' | 'SECRETARY' | 'CONTACT_PERSON' + */ + public function getRoleCode() : ?string + { + return $this->roleCode; + } + + /** + * @return bool + */ + public function hasRoleCode() : bool + { + return !empty($this->roleCode); + } +} + diff --git a/src/Request/Type/ContactPersonIn.php b/src/Request/Type/ContactPersonIn.php index be020931..37ff8c2f 100644 --- a/src/Request/Type/ContactPersonIn.php +++ b/src/Request/Type/ContactPersonIn.php @@ -10,7 +10,7 @@ class ContactPersonIn private $userId; /** - * @var \OpenEuropa\EPoetry\Request\Type\ContactRole + * @var 'REQUESTER' | 'AUTHOR' | 'RECIPIENT' | 'WEBMASTER' | 'EDITOR' | 'DOCUMENT_AUTHOR' | 'DOSSIER_AUTHOR' | 'LEGISLATIVE_COORDINATOR' | 'SECRETARY' | 'CONTACT_PERSON' */ private $contactRole; @@ -18,9 +18,9 @@ class ContactPersonIn * Constructor * * @param string $userId - * @param \OpenEuropa\EPoetry\Request\Type\ContactRole $contactRole + * @param 'REQUESTER' | 'AUTHOR' | 'RECIPIENT' | 'WEBMASTER' | 'EDITOR' | 'DOCUMENT_AUTHOR' | 'DOSSIER_AUTHOR' | 'LEGISLATIVE_COORDINATOR' | 'SECRETARY' | 'CONTACT_PERSON' $contactRole */ - public function __construct(string $userId, \OpenEuropa\EPoetry\Request\Type\ContactRole $contactRole) + public function __construct(string $userId, string $contactRole) { $this->userId = $userId; $this->contactRole = $contactRole; @@ -37,9 +37,9 @@ public function setUserId(string $userId) : static } /** - * @return string|null + * @return string */ - public function getUserId() : ?string + public function getUserId() : string { return $this->userId; } @@ -53,19 +53,19 @@ public function hasUserId() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\ContactRole $contactRole + * @param 'REQUESTER' | 'AUTHOR' | 'RECIPIENT' | 'WEBMASTER' | 'EDITOR' | 'DOCUMENT_AUTHOR' | 'DOSSIER_AUTHOR' | 'LEGISLATIVE_COORDINATOR' | 'SECRETARY' | 'CONTACT_PERSON' $contactRole * @return $this */ - public function setContactRole(\OpenEuropa\EPoetry\Request\Type\ContactRole $contactRole) : static + public function setContactRole(string $contactRole) : static { $this->contactRole = $contactRole; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\ContactRole|null + * @return 'REQUESTER' | 'AUTHOR' | 'RECIPIENT' | 'WEBMASTER' | 'EDITOR' | 'DOCUMENT_AUTHOR' | 'DOSSIER_AUTHOR' | 'LEGISLATIVE_COORDINATOR' | 'SECRETARY' | 'CONTACT_PERSON' */ - public function getContactRole() : ?\OpenEuropa\EPoetry\Request\Type\ContactRole + public function getContactRole() : string { return $this->contactRole; } diff --git a/src/Request/Type/ContactPersonOut.php b/src/Request/Type/ContactPersonOut.php index befc4bd1..cd513943 100644 --- a/src/Request/Type/ContactPersonOut.php +++ b/src/Request/Type/ContactPersonOut.php @@ -5,40 +5,40 @@ class ContactPersonOut { /** - * @var string + * @var null | string */ - private $firstName; + private $firstName = null; /** - * @var string + * @var null | string */ - private $lastName; + private $lastName = null; /** - * @var string + * @var null | string */ - private $email; + private $email = null; /** - * @var string + * @var null | string */ - private $userId; + private $userId = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\ContactRole + * @var null | 'REQUESTER' | 'AUTHOR' | 'RECIPIENT' | 'WEBMASTER' | 'EDITOR' | 'DOCUMENT_AUTHOR' | 'DOSSIER_AUTHOR' | 'LEGISLATIVE_COORDINATOR' | 'SECRETARY' | 'CONTACT_PERSON' */ - private $roleCode; + private $roleCode = null; /** * Constructor * - * @param string $firstName - * @param string $lastName - * @param string $email - * @param string $userId - * @param \OpenEuropa\EPoetry\Request\Type\ContactRole $roleCode + * @param null | string $firstName + * @param null | string $lastName + * @param null | string $email + * @param null | string $userId + * @param null | 'REQUESTER' | 'AUTHOR' | 'RECIPIENT' | 'WEBMASTER' | 'EDITOR' | 'DOCUMENT_AUTHOR' | 'DOSSIER_AUTHOR' | 'LEGISLATIVE_COORDINATOR' | 'SECRETARY' | 'CONTACT_PERSON' $roleCode */ - public function __construct(string $firstName, string $lastName, string $email, string $userId, \OpenEuropa\EPoetry\Request\Type\ContactRole $roleCode) + public function __construct(?string $firstName, ?string $lastName, ?string $email, ?string $userId, ?string $roleCode) { $this->firstName = $firstName; $this->lastName = $lastName; @@ -48,17 +48,17 @@ public function __construct(string $firstName, string $lastName, string $email, } /** - * @param string $firstName + * @param null | string $firstName * @return $this */ - public function setFirstName(string $firstName) : static + public function setFirstName(?string $firstName) : static { $this->firstName = $firstName; return $this; } /** - * @return string|null + * @return null | string */ public function getFirstName() : ?string { @@ -74,17 +74,17 @@ public function hasFirstName() : bool } /** - * @param string $lastName + * @param null | string $lastName * @return $this */ - public function setLastName(string $lastName) : static + public function setLastName(?string $lastName) : static { $this->lastName = $lastName; return $this; } /** - * @return string|null + * @return null | string */ public function getLastName() : ?string { @@ -100,17 +100,17 @@ public function hasLastName() : bool } /** - * @param string $email + * @param null | string $email * @return $this */ - public function setEmail(string $email) : static + public function setEmail(?string $email) : static { $this->email = $email; return $this; } /** - * @return string|null + * @return null | string */ public function getEmail() : ?string { @@ -126,17 +126,17 @@ public function hasEmail() : bool } /** - * @param string $userId + * @param null | string $userId * @return $this */ - public function setUserId(string $userId) : static + public function setUserId(?string $userId) : static { $this->userId = $userId; return $this; } /** - * @return string|null + * @return null | string */ public function getUserId() : ?string { @@ -152,19 +152,19 @@ public function hasUserId() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\ContactRole $roleCode + * @param null | 'REQUESTER' | 'AUTHOR' | 'RECIPIENT' | 'WEBMASTER' | 'EDITOR' | 'DOCUMENT_AUTHOR' | 'DOSSIER_AUTHOR' | 'LEGISLATIVE_COORDINATOR' | 'SECRETARY' | 'CONTACT_PERSON' $roleCode * @return $this */ - public function setRoleCode(\OpenEuropa\EPoetry\Request\Type\ContactRole $roleCode) : static + public function setRoleCode(?string $roleCode) : static { $this->roleCode = $roleCode; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\ContactRole|null + * @return null | 'REQUESTER' | 'AUTHOR' | 'RECIPIENT' | 'WEBMASTER' | 'EDITOR' | 'DOCUMENT_AUTHOR' | 'DOSSIER_AUTHOR' | 'LEGISLATIVE_COORDINATOR' | 'SECRETARY' | 'CONTACT_PERSON' */ - public function getRoleCode() : ?\OpenEuropa\EPoetry\Request\Type\ContactRole + public function getRoleCode() : ?string { return $this->roleCode; } diff --git a/src/Request/Type/Contacts.php b/src/Request/Type/Contacts.php index 6ffe0e8f..64677f27 100644 --- a/src/Request/Type/Contacts.php +++ b/src/Request/Type/Contacts.php @@ -5,12 +5,13 @@ class Contacts { /** - * @var \OpenEuropa\EPoetry\Request\Type\ContactPersonIn[]|array + * @var non-empty-array, + * \OpenEuropa\EPoetry\Request\Type\ContactPersonIn[]|array> */ private $contact = []; /** - * @param ContactPersonIn[] $contact + * @param non-empty-array, ContactPersonIn[]> $contact * @return $this */ public function setContact(array $contact) : static @@ -20,7 +21,8 @@ public function setContact(array $contact) : static } /** - * @return \OpenEuropa\EPoetry\Request\Type\ContactPersonIn[]|array|null + * @return non-empty-array, + * \OpenEuropa\EPoetry\Request\Type\ContactPersonIn[]|array> */ public function getContact() : ?array { diff --git a/src/Request/Type/CorrectionDetailsIn.php b/src/Request/Type/CorrectionDetailsIn.php index cc655241..bf6effee 100644 --- a/src/Request/Type/CorrectionDetailsIn.php +++ b/src/Request/Type/CorrectionDetailsIn.php @@ -5,47 +5,47 @@ class CorrectionDetailsIn { /** - * @var \OpenEuropa\EPoetry\Request\Type\CorrectionReferenceIn + * @var null | \OpenEuropa\EPoetry\Request\Type\CorrectionReferenceIn */ - private $requestReference; + private $requestReference = null; /** - * @var string + * @var null | string */ - private $fileName; + private $fileName = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Base64Binary + * @var null | mixed */ - private $content; + private $content = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\DocumentFormat + * @var null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' */ - private $format; + private $format = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Language + * @var null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - private $language; + private $language = null; /** - * @var string + * @var null | string */ - private $remark; + private $remark = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\CorrectionReferenceIn $requestReference + * @param null | \OpenEuropa\EPoetry\Request\Type\CorrectionReferenceIn $requestReference * @return $this */ - public function setRequestReference(\OpenEuropa\EPoetry\Request\Type\CorrectionReferenceIn $requestReference) : static + public function setRequestReference(?\OpenEuropa\EPoetry\Request\Type\CorrectionReferenceIn $requestReference) : static { $this->requestReference = $requestReference; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\CorrectionReferenceIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\CorrectionReferenceIn */ public function getRequestReference() : ?\OpenEuropa\EPoetry\Request\Type\CorrectionReferenceIn { @@ -61,17 +61,17 @@ public function hasRequestReference() : bool } /** - * @param string $fileName + * @param null | string $fileName * @return $this */ - public function setFileName(string $fileName) : static + public function setFileName(?string $fileName) : static { $this->fileName = $fileName; return $this; } /** - * @return string|null + * @return null | string */ public function getFileName() : ?string { @@ -87,19 +87,19 @@ public function hasFileName() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Base64Binary $content + * @param null | mixed $content * @return $this */ - public function setContent(\OpenEuropa\EPoetry\Request\Type\Base64Binary $content) : static + public function setContent(mixed $content) : static { $this->content = $content; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Base64Binary|null + * @return null | mixed */ - public function getContent() : ?\OpenEuropa\EPoetry\Request\Type\Base64Binary + public function getContent() : mixed { return $this->content; } @@ -113,19 +113,19 @@ public function hasContent() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\DocumentFormat $format + * @param null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' $format * @return $this */ - public function setFormat(\OpenEuropa\EPoetry\Request\Type\DocumentFormat $format) : static + public function setFormat(?string $format) : static { $this->format = $format; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\DocumentFormat|null + * @return null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' */ - public function getFormat() : ?\OpenEuropa\EPoetry\Request\Type\DocumentFormat + public function getFormat() : ?string { return $this->format; } @@ -139,19 +139,19 @@ public function hasFormat() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Language $language + * @param null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' $language * @return $this */ - public function setLanguage(\OpenEuropa\EPoetry\Request\Type\Language $language) : static + public function setLanguage(?string $language) : static { $this->language = $language; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Language|null + * @return null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - public function getLanguage() : ?\OpenEuropa\EPoetry\Request\Type\Language + public function getLanguage() : ?string { return $this->language; } @@ -165,17 +165,17 @@ public function hasLanguage() : bool } /** - * @param string $remark + * @param null | string $remark * @return $this */ - public function setRemark(string $remark) : static + public function setRemark(?string $remark) : static { $this->remark = $remark; return $this; } /** - * @return string|null + * @return null | string */ public function getRemark() : ?string { diff --git a/src/Request/Type/CorrectionReferenceIn.php b/src/Request/Type/CorrectionReferenceIn.php index d3ebfc88..502886bd 100644 --- a/src/Request/Type/CorrectionReferenceIn.php +++ b/src/Request/Type/CorrectionReferenceIn.php @@ -5,22 +5,22 @@ class CorrectionReferenceIn { /** - * @var int + * @var null | int */ - private $version; + private $version = null; /** - * @param int $version + * @param null | int $version * @return $this */ - public function setVersion(int $version) : static + public function setVersion(?int $version) : static { $this->version = $version; return $this; } /** - * @return int|null + * @return null | int */ public function getVersion() : ?int { diff --git a/src/Request/Type/CorrectionRequestOut.php b/src/Request/Type/CorrectionRequestOut.php index a924eeaf..173f6573 100644 --- a/src/Request/Type/CorrectionRequestOut.php +++ b/src/Request/Type/CorrectionRequestOut.php @@ -5,27 +5,27 @@ class CorrectionRequestOut { /** - * @var \OpenEuropa\EPoetry\Request\Type\RequestReferenceOut + * @var null | \OpenEuropa\EPoetry\Request\Type\RequestReferenceOut */ - private $requestReference; + private $requestReference = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\DcoOut + * @var null | \OpenEuropa\EPoetry\Request\Type\DcoOut */ - private $DCO; + private $DCO = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\RequestReferenceOut $requestReference + * @param null | \OpenEuropa\EPoetry\Request\Type\RequestReferenceOut $requestReference * @return $this */ - public function setRequestReference(\OpenEuropa\EPoetry\Request\Type\RequestReferenceOut $requestReference) : static + public function setRequestReference(?\OpenEuropa\EPoetry\Request\Type\RequestReferenceOut $requestReference) : static { $this->requestReference = $requestReference; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\RequestReferenceOut|null + * @return null | \OpenEuropa\EPoetry\Request\Type\RequestReferenceOut */ public function getRequestReference() : ?\OpenEuropa\EPoetry\Request\Type\RequestReferenceOut { @@ -41,17 +41,17 @@ public function hasRequestReference() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\DcoOut $DCO + * @param null | \OpenEuropa\EPoetry\Request\Type\DcoOut $DCO * @return $this */ - public function setDCO(\OpenEuropa\EPoetry\Request\Type\DcoOut $DCO) : static + public function setDCO(?\OpenEuropa\EPoetry\Request\Type\DcoOut $DCO) : static { $this->DCO = $DCO; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\DcoOut|null + * @return null | \OpenEuropa\EPoetry\Request\Type\DcoOut */ public function getDCO() : ?\OpenEuropa\EPoetry\Request\Type\DcoOut { diff --git a/src/Request/Type/CreateCorrectionRequest.php b/src/Request/Type/CreateCorrectionRequest.php index a9a3c201..fe795ad6 100644 --- a/src/Request/Type/CreateCorrectionRequest.php +++ b/src/Request/Type/CreateCorrectionRequest.php @@ -7,27 +7,27 @@ class CreateCorrectionRequest implements RequestInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\CorrectionDetailsIn + * @var null | \OpenEuropa\EPoetry\Request\Type\CorrectionDetailsIn */ - private $correctionDetails; + private $correctionDetails = null; /** - * @var string + * @var null | string */ - private $applicationName; + private $applicationName = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\CorrectionDetailsIn $correctionDetails + * @param null | \OpenEuropa\EPoetry\Request\Type\CorrectionDetailsIn $correctionDetails * @return $this */ - public function setCorrectionDetails(\OpenEuropa\EPoetry\Request\Type\CorrectionDetailsIn $correctionDetails) : static + public function setCorrectionDetails(?\OpenEuropa\EPoetry\Request\Type\CorrectionDetailsIn $correctionDetails) : static { $this->correctionDetails = $correctionDetails; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\CorrectionDetailsIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\CorrectionDetailsIn */ public function getCorrectionDetails() : ?\OpenEuropa\EPoetry\Request\Type\CorrectionDetailsIn { @@ -43,17 +43,17 @@ public function hasCorrectionDetails() : bool } /** - * @param string $applicationName + * @param null | string $applicationName * @return $this */ - public function setApplicationName(string $applicationName) : static + public function setApplicationName(?string $applicationName) : static { $this->applicationName = $applicationName; return $this; } /** - * @return string|null + * @return null | string */ public function getApplicationName() : ?string { diff --git a/src/Request/Type/CreateCorrectionRequestResponse.php b/src/Request/Type/CreateCorrectionRequestResponse.php index e4c1b7e2..37987c91 100644 --- a/src/Request/Type/CreateCorrectionRequestResponse.php +++ b/src/Request/Type/CreateCorrectionRequestResponse.php @@ -7,22 +7,22 @@ class CreateCorrectionRequestResponse implements ResultInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\CorrectionRequestOut + * @var null | \OpenEuropa\EPoetry\Request\Type\CorrectionRequestOut */ - private $return; + private $return = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\CorrectionRequestOut $return + * @param null | \OpenEuropa\EPoetry\Request\Type\CorrectionRequestOut $return * @return $this */ - public function setReturn(\OpenEuropa\EPoetry\Request\Type\CorrectionRequestOut $return) : static + public function setReturn(?\OpenEuropa\EPoetry\Request\Type\CorrectionRequestOut $return) : static { $this->return = $return; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\CorrectionRequestOut|null + * @return null | \OpenEuropa\EPoetry\Request\Type\CorrectionRequestOut */ public function getReturn() : ?\OpenEuropa\EPoetry\Request\Type\CorrectionRequestOut { diff --git a/src/Request/Type/CreateLinguisticRequest.php b/src/Request/Type/CreateLinguisticRequest.php index 887d8309..c96b23d6 100644 --- a/src/Request/Type/CreateLinguisticRequest.php +++ b/src/Request/Type/CreateLinguisticRequest.php @@ -7,32 +7,32 @@ class CreateLinguisticRequest implements RequestInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn + * @var null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn */ - private $requestDetails; + private $requestDetails = null; /** - * @var string + * @var null | string */ - private $applicationName; + private $applicationName = null; /** - * @var string + * @var null | string */ - private $templateName; + private $templateName = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn $requestDetails + * @param null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn $requestDetails * @return $this */ - public function setRequestDetails(\OpenEuropa\EPoetry\Request\Type\RequestDetailsIn $requestDetails) : static + public function setRequestDetails(?\OpenEuropa\EPoetry\Request\Type\RequestDetailsIn $requestDetails) : static { $this->requestDetails = $requestDetails; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn */ public function getRequestDetails() : ?\OpenEuropa\EPoetry\Request\Type\RequestDetailsIn { @@ -48,17 +48,17 @@ public function hasRequestDetails() : bool } /** - * @param string $applicationName + * @param null | string $applicationName * @return $this */ - public function setApplicationName(string $applicationName) : static + public function setApplicationName(?string $applicationName) : static { $this->applicationName = $applicationName; return $this; } /** - * @return string|null + * @return null | string */ public function getApplicationName() : ?string { @@ -74,17 +74,17 @@ public function hasApplicationName() : bool } /** - * @param string $templateName + * @param null | string $templateName * @return $this */ - public function setTemplateName(string $templateName) : static + public function setTemplateName(?string $templateName) : static { $this->templateName = $templateName; return $this; } /** - * @return string|null + * @return null | string */ public function getTemplateName() : ?string { diff --git a/src/Request/Type/CreateLinguisticRequestResponse.php b/src/Request/Type/CreateLinguisticRequestResponse.php index 4b03def5..1e588e99 100644 --- a/src/Request/Type/CreateLinguisticRequestResponse.php +++ b/src/Request/Type/CreateLinguisticRequestResponse.php @@ -7,22 +7,22 @@ class CreateLinguisticRequestResponse implements ResultInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut + * @var null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut */ - private $return; + private $return = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return + * @param null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return * @return $this */ - public function setReturn(\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return) : static + public function setReturn(?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return) : static { $this->return = $return; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut|null + * @return null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut */ public function getReturn() : ?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut { diff --git a/src/Request/Type/CreateNewVersion.php b/src/Request/Type/CreateNewVersion.php index 3e5e1781..913f7130 100644 --- a/src/Request/Type/CreateNewVersion.php +++ b/src/Request/Type/CreateNewVersion.php @@ -7,27 +7,27 @@ class CreateNewVersion implements RequestInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn + * @var null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn */ - private $linguisticRequest; + private $linguisticRequest = null; /** - * @var string + * @var null | string */ - private $applicationName; + private $applicationName = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn $linguisticRequest + * @param null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn $linguisticRequest * @return $this */ - public function setLinguisticRequest(\OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn $linguisticRequest) : static + public function setLinguisticRequest(?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn $linguisticRequest) : static { $this->linguisticRequest = $linguisticRequest; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn */ public function getLinguisticRequest() : ?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn { @@ -43,17 +43,17 @@ public function hasLinguisticRequest() : bool } /** - * @param string $applicationName + * @param null | string $applicationName * @return $this */ - public function setApplicationName(string $applicationName) : static + public function setApplicationName(?string $applicationName) : static { $this->applicationName = $applicationName; return $this; } /** - * @return string|null + * @return null | string */ public function getApplicationName() : ?string { diff --git a/src/Request/Type/CreateNewVersionResponse.php b/src/Request/Type/CreateNewVersionResponse.php index 56d184b4..9c50695d 100644 --- a/src/Request/Type/CreateNewVersionResponse.php +++ b/src/Request/Type/CreateNewVersionResponse.php @@ -7,22 +7,22 @@ class CreateNewVersionResponse implements ResultInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut + * @var null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut */ - private $return; + private $return = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return + * @param null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return * @return $this */ - public function setReturn(\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return) : static + public function setReturn(?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return) : static { $this->return = $return; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut|null + * @return null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut */ public function getReturn() : ?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut { diff --git a/src/Request/Type/DCO.php b/src/Request/Type/DCO.php new file mode 100644 index 00000000..30ca3608 --- /dev/null +++ b/src/Request/Type/DCO.php @@ -0,0 +1,224 @@ +applicationName = $applicationName; + return $this; + } + + /** + * @return null | string + */ + public function getApplicationName() : ?string + { + return $this->applicationName; + } + + /** + * @return bool + */ + public function hasApplicationName() : bool + { + return !empty($this->applicationName); + } + + /** + * @param null | \DateTimeInterface $deadline + * @return $this + */ + public function setDeadline(?\DateTimeInterface $deadline) : static + { + $this->deadline = $deadline; + return $this; + } + + /** + * @return null | \DateTimeInterface + */ + public function getDeadline() : ?\DateTimeInterface + { + return $this->deadline; + } + + /** + * @return bool + */ + public function hasDeadline() : bool + { + return !empty($this->deadline); + } + + /** + * @param null | string $fileName + * @return $this + */ + public function setFileName(?string $fileName) : static + { + $this->fileName = $fileName; + return $this; + } + + /** + * @return null | string + */ + public function getFileName() : ?string + { + return $this->fileName; + } + + /** + * @return bool + */ + public function hasFileName() : bool + { + return !empty($this->fileName); + } + + /** + * @param null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' $format + * @return $this + */ + public function setFormat(?string $format) : static + { + $this->format = $format; + return $this; + } + + /** + * @return null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' + */ + public function getFormat() : ?string + { + return $this->format; + } + + /** + * @return bool + */ + public function hasFormat() : bool + { + return !empty($this->format); + } + + /** + * @param null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' $language + * @return $this + */ + public function setLanguage(?string $language) : static + { + $this->language = $language; + return $this; + } + + /** + * @return null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' + */ + public function getLanguage() : ?string + { + return $this->language; + } + + /** + * @return bool + */ + public function hasLanguage() : bool + { + return !empty($this->language); + } + + /** + * @param null | string $remark + * @return $this + */ + public function setRemark(?string $remark) : static + { + $this->remark = $remark; + return $this; + } + + /** + * @return null | string + */ + public function getRemark() : ?string + { + return $this->remark; + } + + /** + * @return bool + */ + public function hasRemark() : bool + { + return !empty($this->remark); + } + + /** + * @param null | 'SenttoDGT' | 'Received' | 'Accepted' | 'Rejected' | 'Cancelled' | 'Suspended' | 'Executed' | 'ToBeValidated' $status + * @return $this + */ + public function setStatus(?string $status) : static + { + $this->status = $status; + return $this; + } + + /** + * @return null | 'SenttoDGT' | 'Received' | 'Accepted' | 'Rejected' | 'Cancelled' | 'Suspended' | 'Executed' | 'ToBeValidated' + */ + public function getStatus() : ?string + { + return $this->status; + } + + /** + * @return bool + */ + public function hasStatus() : bool + { + return !empty($this->status); + } +} + diff --git a/src/Request/Type/DcoOut.php b/src/Request/Type/DcoOut.php index 65568e9a..34114339 100644 --- a/src/Request/Type/DcoOut.php +++ b/src/Request/Type/DcoOut.php @@ -5,52 +5,52 @@ class DcoOut { /** - * @var string + * @var null | string */ - private $applicationName; + private $applicationName = null; /** - * @var \DateTimeInterface + * @var null | \DateTimeInterface */ - private $deadline; + private $deadline = null; /** - * @var string + * @var null | string */ - private $fileName; + private $fileName = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\DocumentFormat + * @var null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' */ - private $format; + private $format = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Language + * @var null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - private $language; + private $language = null; /** - * @var string + * @var null | string */ - private $remark; + private $remark = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\RequestStatus + * @var null | 'SenttoDGT' | 'Received' | 'Accepted' | 'Rejected' | 'Cancelled' | 'Suspended' | 'Executed' | 'ToBeValidated' */ - private $status; + private $status = null; /** - * @param string $applicationName + * @param null | string $applicationName * @return $this */ - public function setApplicationName(string $applicationName) : static + public function setApplicationName(?string $applicationName) : static { $this->applicationName = $applicationName; return $this; } /** - * @return string|null + * @return null | string */ public function getApplicationName() : ?string { @@ -66,17 +66,17 @@ public function hasApplicationName() : bool } /** - * @param \DateTimeInterface $deadline + * @param null | \DateTimeInterface $deadline * @return $this */ - public function setDeadline(\DateTimeInterface $deadline) : static + public function setDeadline(?\DateTimeInterface $deadline) : static { $this->deadline = $deadline; return $this; } /** - * @return \DateTimeInterface|null + * @return null | \DateTimeInterface */ public function getDeadline() : ?\DateTimeInterface { @@ -92,17 +92,17 @@ public function hasDeadline() : bool } /** - * @param string $fileName + * @param null | string $fileName * @return $this */ - public function setFileName(string $fileName) : static + public function setFileName(?string $fileName) : static { $this->fileName = $fileName; return $this; } /** - * @return string|null + * @return null | string */ public function getFileName() : ?string { @@ -118,19 +118,19 @@ public function hasFileName() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\DocumentFormat $format + * @param null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' $format * @return $this */ - public function setFormat(\OpenEuropa\EPoetry\Request\Type\DocumentFormat $format) : static + public function setFormat(?string $format) : static { $this->format = $format; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\DocumentFormat|null + * @return null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' */ - public function getFormat() : ?\OpenEuropa\EPoetry\Request\Type\DocumentFormat + public function getFormat() : ?string { return $this->format; } @@ -144,19 +144,19 @@ public function hasFormat() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Language $language + * @param null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' $language * @return $this */ - public function setLanguage(\OpenEuropa\EPoetry\Request\Type\Language $language) : static + public function setLanguage(?string $language) : static { $this->language = $language; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Language|null + * @return null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - public function getLanguage() : ?\OpenEuropa\EPoetry\Request\Type\Language + public function getLanguage() : ?string { return $this->language; } @@ -170,17 +170,17 @@ public function hasLanguage() : bool } /** - * @param string $remark + * @param null | string $remark * @return $this */ - public function setRemark(string $remark) : static + public function setRemark(?string $remark) : static { $this->remark = $remark; return $this; } /** - * @return string|null + * @return null | string */ public function getRemark() : ?string { @@ -196,19 +196,19 @@ public function hasRemark() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\RequestStatus $status + * @param null | 'SenttoDGT' | 'Received' | 'Accepted' | 'Rejected' | 'Cancelled' | 'Suspended' | 'Executed' | 'ToBeValidated' $status * @return $this */ - public function setStatus(\OpenEuropa\EPoetry\Request\Type\RequestStatus $status) : static + public function setStatus(?string $status) : static { $this->status = $status; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\RequestStatus|null + * @return null | 'SenttoDGT' | 'Received' | 'Accepted' | 'Rejected' | 'Cancelled' | 'Suspended' | 'Executed' | 'ToBeValidated' */ - public function getStatus() : ?\OpenEuropa\EPoetry\Request\Type\RequestStatus + public function getStatus() : ?string { return $this->status; } diff --git a/src/Request/Type/DocumentIn.php b/src/Request/Type/DocumentIn.php index ae8e5aaf..9e7cdb63 100644 --- a/src/Request/Type/DocumentIn.php +++ b/src/Request/Type/DocumentIn.php @@ -5,37 +5,37 @@ class DocumentIn { /** - * @var string + * @var null | string */ - private $fileName; + private $fileName = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Language + * @var 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ private $language; /** - * @var string + * @var null | string */ - private $comment; + private $comment = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Base64Binary + * @var null | mixed */ - private $content; + private $content = null; /** - * @param string $fileName + * @param null | string $fileName * @return $this */ - public function setFileName(string $fileName) : static + public function setFileName(?string $fileName) : static { $this->fileName = $fileName; return $this; } /** - * @return string|null + * @return null | string */ public function getFileName() : ?string { @@ -51,19 +51,19 @@ public function hasFileName() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Language $language + * @param 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' $language * @return $this */ - public function setLanguage(\OpenEuropa\EPoetry\Request\Type\Language $language) : static + public function setLanguage(string $language) : static { $this->language = $language; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Language|null + * @return 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - public function getLanguage() : ?\OpenEuropa\EPoetry\Request\Type\Language + public function getLanguage() : string { return $this->language; } @@ -77,17 +77,17 @@ public function hasLanguage() : bool } /** - * @param string $comment + * @param null | string $comment * @return $this */ - public function setComment(string $comment) : static + public function setComment(?string $comment) : static { $this->comment = $comment; return $this; } /** - * @return string|null + * @return null | string */ public function getComment() : ?string { @@ -103,19 +103,19 @@ public function hasComment() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Base64Binary $content + * @param null | mixed $content * @return $this */ - public function setContent(\OpenEuropa\EPoetry\Request\Type\Base64Binary $content) : static + public function setContent(mixed $content) : static { $this->content = $content; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Base64Binary|null + * @return null | mixed */ - public function getContent() : ?\OpenEuropa\EPoetry\Request\Type\Base64Binary + public function getContent() : mixed { return $this->content; } diff --git a/src/Request/Type/Dossier.php b/src/Request/Type/Dossier.php new file mode 100644 index 00000000..7b961db7 --- /dev/null +++ b/src/Request/Type/Dossier.php @@ -0,0 +1,100 @@ +requesterCode = $requesterCode; + return $this; + } + + /** + * @return null | string + */ + public function getRequesterCode() : ?string + { + return $this->requesterCode; + } + + /** + * @return bool + */ + public function hasRequesterCode() : bool + { + return !empty($this->requesterCode); + } + + /** + * @param null | int $number + * @return $this + */ + public function setNumber(?int $number) : static + { + $this->number = $number; + return $this; + } + + /** + * @return null | int + */ + public function getNumber() : ?int + { + return $this->number; + } + + /** + * @return bool + */ + public function hasNumber() : bool + { + return !empty($this->number); + } + + /** + * @param null | int $year + * @return $this + */ + public function setYear(?int $year) : static + { + $this->year = $year; + return $this; + } + + /** + * @return null | int + */ + public function getYear() : ?int + { + return $this->year; + } + + /** + * @return bool + */ + public function hasYear() : bool + { + return !empty($this->year); + } +} + diff --git a/src/Request/Type/DossierReference.php b/src/Request/Type/DossierReference.php index 0dbac799..89679789 100644 --- a/src/Request/Type/DossierReference.php +++ b/src/Request/Type/DossierReference.php @@ -5,32 +5,32 @@ class DossierReference { /** - * @var string + * @var null | string */ - private $requesterCode; + private $requesterCode = null; /** - * @var int + * @var null | int */ - private $number; + private $number = null; /** - * @var int + * @var null | int */ - private $year; + private $year = null; /** - * @param string $requesterCode + * @param null | string $requesterCode * @return $this */ - public function setRequesterCode(string $requesterCode) : static + public function setRequesterCode(?string $requesterCode) : static { $this->requesterCode = $requesterCode; return $this; } /** - * @return string|null + * @return null | string */ public function getRequesterCode() : ?string { @@ -46,17 +46,17 @@ public function hasRequesterCode() : bool } /** - * @param int $number + * @param null | int $number * @return $this */ - public function setNumber(int $number) : static + public function setNumber(?int $number) : static { $this->number = $number; return $this; } /** - * @return int|null + * @return null | int */ public function getNumber() : ?int { @@ -72,17 +72,17 @@ public function hasNumber() : bool } /** - * @param int $year + * @param null | int $year * @return $this */ - public function setYear(int $year) : static + public function setYear(?int $year) : static { $this->year = $year; return $this; } /** - * @return int|null + * @return null | int */ public function getYear() : ?int { diff --git a/src/Request/Type/GetLinguisticRequest.php b/src/Request/Type/GetLinguisticRequest.php index 0bdbee0f..bfb95e80 100644 --- a/src/Request/Type/GetLinguisticRequest.php +++ b/src/Request/Type/GetLinguisticRequest.php @@ -7,27 +7,27 @@ class GetLinguisticRequest implements RequestInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\RequestReferenceIn + * @var null | \OpenEuropa\EPoetry\Request\Type\RequestReferenceIn */ - private $requestReference; + private $requestReference = null; /** - * @var string + * @var null | string */ - private $applicationName; + private $applicationName = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\RequestReferenceIn $requestReference + * @param null | \OpenEuropa\EPoetry\Request\Type\RequestReferenceIn $requestReference * @return $this */ - public function setRequestReference(\OpenEuropa\EPoetry\Request\Type\RequestReferenceIn $requestReference) : static + public function setRequestReference(?\OpenEuropa\EPoetry\Request\Type\RequestReferenceIn $requestReference) : static { $this->requestReference = $requestReference; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\RequestReferenceIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\RequestReferenceIn */ public function getRequestReference() : ?\OpenEuropa\EPoetry\Request\Type\RequestReferenceIn { @@ -43,17 +43,17 @@ public function hasRequestReference() : bool } /** - * @param string $applicationName + * @param null | string $applicationName * @return $this */ - public function setApplicationName(string $applicationName) : static + public function setApplicationName(?string $applicationName) : static { $this->applicationName = $applicationName; return $this; } /** - * @return string|null + * @return null | string */ public function getApplicationName() : ?string { diff --git a/src/Request/Type/GetLinguisticRequestResponse.php b/src/Request/Type/GetLinguisticRequestResponse.php index 26a82b33..492e2ad8 100644 --- a/src/Request/Type/GetLinguisticRequestResponse.php +++ b/src/Request/Type/GetLinguisticRequestResponse.php @@ -7,22 +7,22 @@ class GetLinguisticRequestResponse implements ResultInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut + * @var null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut */ - private $return; + private $return = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return + * @param null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return * @return $this */ - public function setReturn(\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return) : static + public function setReturn(?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return) : static { $this->return = $return; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut|null + * @return null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut */ public function getReturn() : ?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut { diff --git a/src/Request/Type/InformativeMessages.php b/src/Request/Type/InformativeMessages.php index 2d2faa66..0e61a654 100644 --- a/src/Request/Type/InformativeMessages.php +++ b/src/Request/Type/InformativeMessages.php @@ -5,12 +5,12 @@ class InformativeMessages { /** - * @var string[]|array + * @var array, string[]|array> */ private $message = []; /** - * @param string[] $message + * @param array, string[]> $message * @return $this */ public function setMessage(array $message) : static @@ -20,7 +20,7 @@ public function setMessage(array $message) : static } /** - * @return string[]|array|null + * @return array, string[]|array> */ public function getMessage() : ?array { diff --git a/src/Request/Type/LinguisticRequestIn.php b/src/Request/Type/LinguisticRequestIn.php index 1ca1e202..759ed872 100644 --- a/src/Request/Type/LinguisticRequestIn.php +++ b/src/Request/Type/LinguisticRequestIn.php @@ -5,27 +5,27 @@ class LinguisticRequestIn { /** - * @var \OpenEuropa\EPoetry\Request\Type\RequestReferenceIn + * @var null | \OpenEuropa\EPoetry\Request\Type\RequestReferenceIn */ - private $requestReference; + private $requestReference = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn + * @var null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn */ - private $requestDetails; + private $requestDetails = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\RequestReferenceIn $requestReference + * @param null | \OpenEuropa\EPoetry\Request\Type\RequestReferenceIn $requestReference * @return $this */ - public function setRequestReference(\OpenEuropa\EPoetry\Request\Type\RequestReferenceIn $requestReference) : static + public function setRequestReference(?\OpenEuropa\EPoetry\Request\Type\RequestReferenceIn $requestReference) : static { $this->requestReference = $requestReference; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\RequestReferenceIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\RequestReferenceIn */ public function getRequestReference() : ?\OpenEuropa\EPoetry\Request\Type\RequestReferenceIn { @@ -41,17 +41,17 @@ public function hasRequestReference() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn $requestDetails + * @param null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn $requestDetails * @return $this */ - public function setRequestDetails(\OpenEuropa\EPoetry\Request\Type\RequestDetailsIn $requestDetails) : static + public function setRequestDetails(?\OpenEuropa\EPoetry\Request\Type\RequestDetailsIn $requestDetails) : static { $this->requestDetails = $requestDetails; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsIn */ public function getRequestDetails() : ?\OpenEuropa\EPoetry\Request\Type\RequestDetailsIn { diff --git a/src/Request/Type/LinguisticRequestOut.php b/src/Request/Type/LinguisticRequestOut.php index 20450490..0cc5b06c 100644 --- a/src/Request/Type/LinguisticRequestOut.php +++ b/src/Request/Type/LinguisticRequestOut.php @@ -5,32 +5,32 @@ class LinguisticRequestOut { /** - * @var \OpenEuropa\EPoetry\Request\Type\RequestReferenceOut + * @var null | \OpenEuropa\EPoetry\Request\Type\RequestReferenceOut */ - private $requestReference; + private $requestReference = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\RequestDetailsOut + * @var null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsOut */ - private $requestDetails; + private $requestDetails = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\InformativeMessages + * @var null | \OpenEuropa\EPoetry\Request\Type\InformativeMessages */ - private $informativeMessages; + private $informativeMessages = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\RequestReferenceOut $requestReference + * @param null | \OpenEuropa\EPoetry\Request\Type\RequestReferenceOut $requestReference * @return $this */ - public function setRequestReference(\OpenEuropa\EPoetry\Request\Type\RequestReferenceOut $requestReference) : static + public function setRequestReference(?\OpenEuropa\EPoetry\Request\Type\RequestReferenceOut $requestReference) : static { $this->requestReference = $requestReference; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\RequestReferenceOut|null + * @return null | \OpenEuropa\EPoetry\Request\Type\RequestReferenceOut */ public function getRequestReference() : ?\OpenEuropa\EPoetry\Request\Type\RequestReferenceOut { @@ -46,17 +46,17 @@ public function hasRequestReference() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\RequestDetailsOut $requestDetails + * @param null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsOut $requestDetails * @return $this */ - public function setRequestDetails(\OpenEuropa\EPoetry\Request\Type\RequestDetailsOut $requestDetails) : static + public function setRequestDetails(?\OpenEuropa\EPoetry\Request\Type\RequestDetailsOut $requestDetails) : static { $this->requestDetails = $requestDetails; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\RequestDetailsOut|null + * @return null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsOut */ public function getRequestDetails() : ?\OpenEuropa\EPoetry\Request\Type\RequestDetailsOut { @@ -72,17 +72,17 @@ public function hasRequestDetails() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\InformativeMessages $informativeMessages + * @param null | \OpenEuropa\EPoetry\Request\Type\InformativeMessages $informativeMessages * @return $this */ - public function setInformativeMessages(\OpenEuropa\EPoetry\Request\Type\InformativeMessages $informativeMessages) : static + public function setInformativeMessages(?\OpenEuropa\EPoetry\Request\Type\InformativeMessages $informativeMessages) : static { $this->informativeMessages = $informativeMessages; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\InformativeMessages|null + * @return null | \OpenEuropa\EPoetry\Request\Type\InformativeMessages */ public function getInformativeMessages() : ?\OpenEuropa\EPoetry\Request\Type\InformativeMessages { diff --git a/src/Request/Type/LinguisticSection.php b/src/Request/Type/LinguisticSection.php new file mode 100644 index 00000000..12566fa9 --- /dev/null +++ b/src/Request/Type/LinguisticSection.php @@ -0,0 +1,38 @@ +language = $language; + return $this; + } + + /** + * @return null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' + */ + public function getLanguage() : ?string + { + return $this->language; + } + + /** + * @return bool + */ + public function hasLanguage() : bool + { + return !empty($this->language); + } +} + diff --git a/src/Request/Type/LinguisticSectionIn.php b/src/Request/Type/LinguisticSectionIn.php index 1391c52c..54aab273 100644 --- a/src/Request/Type/LinguisticSectionIn.php +++ b/src/Request/Type/LinguisticSectionIn.php @@ -5,34 +5,34 @@ class LinguisticSectionIn { /** - * @var \OpenEuropa\EPoetry\Request\Type\Language + * @var 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ private $language; /** * Constructor * - * @param \OpenEuropa\EPoetry\Request\Type\Language $language + * @param 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' $language */ - public function __construct(\OpenEuropa\EPoetry\Request\Type\Language $language) + public function __construct(string $language) { $this->language = $language; } /** - * @param \OpenEuropa\EPoetry\Request\Type\Language $language + * @param 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' $language * @return $this */ - public function setLanguage(\OpenEuropa\EPoetry\Request\Type\Language $language) : static + public function setLanguage(string $language) : static { $this->language = $language; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Language|null + * @return 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - public function getLanguage() : ?\OpenEuropa\EPoetry\Request\Type\Language + public function getLanguage() : string { return $this->language; } diff --git a/src/Request/Type/LinguisticSectionOut.php b/src/Request/Type/LinguisticSectionOut.php index c925d01e..bad9cfe2 100644 --- a/src/Request/Type/LinguisticSectionOut.php +++ b/src/Request/Type/LinguisticSectionOut.php @@ -5,34 +5,34 @@ class LinguisticSectionOut { /** - * @var \OpenEuropa\EPoetry\Request\Type\Language + * @var null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - private $language; + private $language = null; /** * Constructor * - * @param \OpenEuropa\EPoetry\Request\Type\Language $language + * @param null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' $language */ - public function __construct(\OpenEuropa\EPoetry\Request\Type\Language $language) + public function __construct(?string $language) { $this->language = $language; } /** - * @param \OpenEuropa\EPoetry\Request\Type\Language $language + * @param null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' $language * @return $this */ - public function setLanguage(\OpenEuropa\EPoetry\Request\Type\Language $language) : static + public function setLanguage(?string $language) : static { $this->language = $language; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Language|null + * @return null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - public function getLanguage() : ?\OpenEuropa\EPoetry\Request\Type\Language + public function getLanguage() : ?string { return $this->language; } diff --git a/src/Request/Type/LinguisticSections.php b/src/Request/Type/LinguisticSections.php index ba84a9a2..9164a08f 100644 --- a/src/Request/Type/LinguisticSections.php +++ b/src/Request/Type/LinguisticSections.php @@ -5,12 +5,13 @@ class LinguisticSections { /** - * @var \OpenEuropa\EPoetry\Request\Type\LinguisticSectionOut[]|array + * @var array, + * \OpenEuropa\EPoetry\Request\Type\LinguisticSectionOut[]|array> */ private $linguisticSection = []; /** - * @param LinguisticSectionOut[] $linguisticSection + * @param array, LinguisticSectionOut[]> $linguisticSection * @return $this */ public function setLinguisticSection(array $linguisticSection) : static @@ -20,7 +21,8 @@ public function setLinguisticSection(array $linguisticSection) : static } /** - * @return \OpenEuropa\EPoetry\Request\Type\LinguisticSectionOut[]|array|null + * @return array, + * \OpenEuropa\EPoetry\Request\Type\LinguisticSectionOut[]|array> */ public function getLinguisticSection() : ?array { diff --git a/src/Request/Type/LinquisticRequest.php b/src/Request/Type/LinquisticRequest.php new file mode 100644 index 00000000..5cebfa90 --- /dev/null +++ b/src/Request/Type/LinquisticRequest.php @@ -0,0 +1,100 @@ +requestReference = $requestReference; + return $this; + } + + /** + * @return null | \OpenEuropa\EPoetry\Request\Type\RequestReferenceOut + */ + public function getRequestReference() : ?\OpenEuropa\EPoetry\Request\Type\RequestReferenceOut + { + return $this->requestReference; + } + + /** + * @return bool + */ + public function hasRequestReference() : bool + { + return !empty($this->requestReference); + } + + /** + * @param null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsOut $requestDetails + * @return $this + */ + public function setRequestDetails(?\OpenEuropa\EPoetry\Request\Type\RequestDetailsOut $requestDetails) : static + { + $this->requestDetails = $requestDetails; + return $this; + } + + /** + * @return null | \OpenEuropa\EPoetry\Request\Type\RequestDetailsOut + */ + public function getRequestDetails() : ?\OpenEuropa\EPoetry\Request\Type\RequestDetailsOut + { + return $this->requestDetails; + } + + /** + * @return bool + */ + public function hasRequestDetails() : bool + { + return !empty($this->requestDetails); + } + + /** + * @param null | \OpenEuropa\EPoetry\Request\Type\InformativeMessages $informativeMessages + * @return $this + */ + public function setInformativeMessages(?\OpenEuropa\EPoetry\Request\Type\InformativeMessages $informativeMessages) : static + { + $this->informativeMessages = $informativeMessages; + return $this; + } + + /** + * @return null | \OpenEuropa\EPoetry\Request\Type\InformativeMessages + */ + public function getInformativeMessages() : ?\OpenEuropa\EPoetry\Request\Type\InformativeMessages + { + return $this->informativeMessages; + } + + /** + * @return bool + */ + public function hasInformativeMessages() : bool + { + return !empty($this->informativeMessages); + } +} + diff --git a/src/Request/Type/ModifyAuxiliaryDocumentsIn.php b/src/Request/Type/ModifyAuxiliaryDocumentsIn.php index 966084c3..a90ce5b5 100644 --- a/src/Request/Type/ModifyAuxiliaryDocumentsIn.php +++ b/src/Request/Type/ModifyAuxiliaryDocumentsIn.php @@ -5,37 +5,37 @@ class ModifyAuxiliaryDocumentsIn { /** - * @var \OpenEuropa\EPoetry\Request\Type\ReferenceDocuments + * @var null | \OpenEuropa\EPoetry\Request\Type\ReferenceDocuments */ - private $referenceDocuments; + private $referenceDocuments = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\TraxDocuments + * @var null | \OpenEuropa\EPoetry\Request\Type\TraxDocuments */ - private $traxDocuments; + private $traxDocuments = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\DocumentIn + * @var null | \OpenEuropa\EPoetry\Request\Type\DocumentIn */ - private $spotDocument; + private $spotDocument = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\PrtDocuments + * @var null | \OpenEuropa\EPoetry\Request\Type\PrtDocuments */ - private $prtDocuments; + private $prtDocuments = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\ReferenceDocuments $referenceDocuments + * @param null | \OpenEuropa\EPoetry\Request\Type\ReferenceDocuments $referenceDocuments * @return $this */ - public function setReferenceDocuments(\OpenEuropa\EPoetry\Request\Type\ReferenceDocuments $referenceDocuments) : static + public function setReferenceDocuments(?\OpenEuropa\EPoetry\Request\Type\ReferenceDocuments $referenceDocuments) : static { $this->referenceDocuments = $referenceDocuments; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\ReferenceDocuments|null + * @return null | \OpenEuropa\EPoetry\Request\Type\ReferenceDocuments */ public function getReferenceDocuments() : ?\OpenEuropa\EPoetry\Request\Type\ReferenceDocuments { @@ -51,17 +51,17 @@ public function hasReferenceDocuments() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\TraxDocuments $traxDocuments + * @param null | \OpenEuropa\EPoetry\Request\Type\TraxDocuments $traxDocuments * @return $this */ - public function setTraxDocuments(\OpenEuropa\EPoetry\Request\Type\TraxDocuments $traxDocuments) : static + public function setTraxDocuments(?\OpenEuropa\EPoetry\Request\Type\TraxDocuments $traxDocuments) : static { $this->traxDocuments = $traxDocuments; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\TraxDocuments|null + * @return null | \OpenEuropa\EPoetry\Request\Type\TraxDocuments */ public function getTraxDocuments() : ?\OpenEuropa\EPoetry\Request\Type\TraxDocuments { @@ -77,17 +77,17 @@ public function hasTraxDocuments() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\DocumentIn $spotDocument + * @param null | \OpenEuropa\EPoetry\Request\Type\DocumentIn $spotDocument * @return $this */ - public function setSpotDocument(\OpenEuropa\EPoetry\Request\Type\DocumentIn $spotDocument) : static + public function setSpotDocument(?\OpenEuropa\EPoetry\Request\Type\DocumentIn $spotDocument) : static { $this->spotDocument = $spotDocument; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\DocumentIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\DocumentIn */ public function getSpotDocument() : ?\OpenEuropa\EPoetry\Request\Type\DocumentIn { @@ -103,17 +103,17 @@ public function hasSpotDocument() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\PrtDocuments $prtDocuments + * @param null | \OpenEuropa\EPoetry\Request\Type\PrtDocuments $prtDocuments * @return $this */ - public function setPrtDocuments(\OpenEuropa\EPoetry\Request\Type\PrtDocuments $prtDocuments) : static + public function setPrtDocuments(?\OpenEuropa\EPoetry\Request\Type\PrtDocuments $prtDocuments) : static { $this->prtDocuments = $prtDocuments; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\PrtDocuments|null + * @return null | \OpenEuropa\EPoetry\Request\Type\PrtDocuments */ public function getPrtDocuments() : ?\OpenEuropa\EPoetry\Request\Type\PrtDocuments { diff --git a/src/Request/Type/ModifyLinguisticRequest.php b/src/Request/Type/ModifyLinguisticRequest.php index dc4f8485..3c0c9dd8 100644 --- a/src/Request/Type/ModifyLinguisticRequest.php +++ b/src/Request/Type/ModifyLinguisticRequest.php @@ -7,27 +7,27 @@ class ModifyLinguisticRequest implements RequestInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\ModifyLinguisticRequestIn + * @var null | \OpenEuropa\EPoetry\Request\Type\ModifyLinguisticRequestIn */ - private $modifyLinguisticRequest; + private $modifyLinguisticRequest = null; /** - * @var string + * @var null | string */ - private $applicationName; + private $applicationName = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\ModifyLinguisticRequestIn $modifyLinguisticRequest + * @param null | \OpenEuropa\EPoetry\Request\Type\ModifyLinguisticRequestIn $modifyLinguisticRequest * @return $this */ - public function setModifyLinguisticRequest(\OpenEuropa\EPoetry\Request\Type\ModifyLinguisticRequestIn $modifyLinguisticRequest) : static + public function setModifyLinguisticRequest(?\OpenEuropa\EPoetry\Request\Type\ModifyLinguisticRequestIn $modifyLinguisticRequest) : static { $this->modifyLinguisticRequest = $modifyLinguisticRequest; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\ModifyLinguisticRequestIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\ModifyLinguisticRequestIn */ public function getModifyLinguisticRequest() : ?\OpenEuropa\EPoetry\Request\Type\ModifyLinguisticRequestIn { @@ -43,17 +43,17 @@ public function hasModifyLinguisticRequest() : bool } /** - * @param string $applicationName + * @param null | string $applicationName * @return $this */ - public function setApplicationName(string $applicationName) : static + public function setApplicationName(?string $applicationName) : static { $this->applicationName = $applicationName; return $this; } /** - * @return string|null + * @return null | string */ public function getApplicationName() : ?string { diff --git a/src/Request/Type/ModifyLinguisticRequestIn.php b/src/Request/Type/ModifyLinguisticRequestIn.php index df6dd872..69646988 100644 --- a/src/Request/Type/ModifyLinguisticRequestIn.php +++ b/src/Request/Type/ModifyLinguisticRequestIn.php @@ -5,27 +5,27 @@ class ModifyLinguisticRequestIn { /** - * @var \OpenEuropa\EPoetry\Request\Type\ModifyRequestReferenceIn + * @var null | \OpenEuropa\EPoetry\Request\Type\ModifyRequestReferenceIn */ - private $requestReference; + private $requestReference = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\ModifyRequestDetailsIn + * @var null | \OpenEuropa\EPoetry\Request\Type\ModifyRequestDetailsIn */ - private $requestDetails; + private $requestDetails = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\ModifyRequestReferenceIn $requestReference + * @param null | \OpenEuropa\EPoetry\Request\Type\ModifyRequestReferenceIn $requestReference * @return $this */ - public function setRequestReference(\OpenEuropa\EPoetry\Request\Type\ModifyRequestReferenceIn $requestReference) : static + public function setRequestReference(?\OpenEuropa\EPoetry\Request\Type\ModifyRequestReferenceIn $requestReference) : static { $this->requestReference = $requestReference; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\ModifyRequestReferenceIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\ModifyRequestReferenceIn */ public function getRequestReference() : ?\OpenEuropa\EPoetry\Request\Type\ModifyRequestReferenceIn { @@ -41,17 +41,17 @@ public function hasRequestReference() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\ModifyRequestDetailsIn $requestDetails + * @param null | \OpenEuropa\EPoetry\Request\Type\ModifyRequestDetailsIn $requestDetails * @return $this */ - public function setRequestDetails(\OpenEuropa\EPoetry\Request\Type\ModifyRequestDetailsIn $requestDetails) : static + public function setRequestDetails(?\OpenEuropa\EPoetry\Request\Type\ModifyRequestDetailsIn $requestDetails) : static { $this->requestDetails = $requestDetails; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\ModifyRequestDetailsIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\ModifyRequestDetailsIn */ public function getRequestDetails() : ?\OpenEuropa\EPoetry\Request\Type\ModifyRequestDetailsIn { diff --git a/src/Request/Type/ModifyLinguisticRequestResponse.php b/src/Request/Type/ModifyLinguisticRequestResponse.php index 87872b98..55b0bf97 100644 --- a/src/Request/Type/ModifyLinguisticRequestResponse.php +++ b/src/Request/Type/ModifyLinguisticRequestResponse.php @@ -7,22 +7,22 @@ class ModifyLinguisticRequestResponse implements ResultInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut + * @var null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut */ - private $return; + private $return = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return + * @param null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return * @return $this */ - public function setReturn(\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return) : static + public function setReturn(?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return) : static { $this->return = $return; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut|null + * @return null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut */ public function getReturn() : ?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut { diff --git a/src/Request/Type/ModifyProductRequestIn.php b/src/Request/Type/ModifyProductRequestIn.php index 1881b08e..aa320e9d 100644 --- a/src/Request/Type/ModifyProductRequestIn.php +++ b/src/Request/Type/ModifyProductRequestIn.php @@ -5,7 +5,7 @@ class ModifyProductRequestIn { /** - * @var \OpenEuropa\EPoetry\Request\Type\Language + * @var 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ private $language; @@ -20,19 +20,19 @@ class ModifyProductRequestIn private $trackChanges; /** - * @param \OpenEuropa\EPoetry\Request\Type\Language $language + * @param 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' $language * @return $this */ - public function setLanguage(\OpenEuropa\EPoetry\Request\Type\Language $language) : static + public function setLanguage(string $language) : static { $this->language = $language; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Language|null + * @return 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - public function getLanguage() : ?\OpenEuropa\EPoetry\Request\Type\Language + public function getLanguage() : string { return $this->language; } @@ -56,9 +56,9 @@ public function setRequestedDeadline(\DateTimeInterface $requestedDeadline) : st } /** - * @return \DateTimeInterface|null + * @return \DateTimeInterface */ - public function getRequestedDeadline() : ?\DateTimeInterface + public function getRequestedDeadline() : \DateTimeInterface { return $this->requestedDeadline; } @@ -82,9 +82,9 @@ public function setTrackChanges(bool $trackChanges) : static } /** - * @return bool|null + * @return bool */ - public function isTrackChanges() : ?bool + public function isTrackChanges() : bool { return $this->trackChanges; } diff --git a/src/Request/Type/ModifyRequestDetailsIn.php b/src/Request/Type/ModifyRequestDetailsIn.php index 5af0eb8a..cae1fa9e 100644 --- a/src/Request/Type/ModifyRequestDetailsIn.php +++ b/src/Request/Type/ModifyRequestDetailsIn.php @@ -10,14 +10,14 @@ class ModifyRequestDetailsIn private $contacts; /** - * @var \OpenEuropa\EPoetry\Request\Type\Products + * @var null | \OpenEuropa\EPoetry\Request\Type\Products */ - private $products; + private $products = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\ModifyAuxiliaryDocumentsIn + * @var null | \OpenEuropa\EPoetry\Request\Type\ModifyAuxiliaryDocumentsIn */ - private $auxiliaryDocuments; + private $auxiliaryDocuments = null; /** * @param \OpenEuropa\EPoetry\Request\Type\Contacts $contacts @@ -30,9 +30,9 @@ public function setContacts(\OpenEuropa\EPoetry\Request\Type\Contacts $contacts) } /** - * @return \OpenEuropa\EPoetry\Request\Type\Contacts|null + * @return \OpenEuropa\EPoetry\Request\Type\Contacts */ - public function getContacts() : ?\OpenEuropa\EPoetry\Request\Type\Contacts + public function getContacts() : \OpenEuropa\EPoetry\Request\Type\Contacts { return $this->contacts; } @@ -46,17 +46,17 @@ public function hasContacts() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Products $products + * @param null | \OpenEuropa\EPoetry\Request\Type\Products $products * @return $this */ - public function setProducts(\OpenEuropa\EPoetry\Request\Type\Products $products) : static + public function setProducts(?\OpenEuropa\EPoetry\Request\Type\Products $products) : static { $this->products = $products; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Products|null + * @return null | \OpenEuropa\EPoetry\Request\Type\Products */ public function getProducts() : ?\OpenEuropa\EPoetry\Request\Type\Products { @@ -72,17 +72,17 @@ public function hasProducts() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\ModifyAuxiliaryDocumentsIn $auxiliaryDocuments + * @param null | \OpenEuropa\EPoetry\Request\Type\ModifyAuxiliaryDocumentsIn $auxiliaryDocuments * @return $this */ - public function setAuxiliaryDocuments(\OpenEuropa\EPoetry\Request\Type\ModifyAuxiliaryDocumentsIn $auxiliaryDocuments) : static + public function setAuxiliaryDocuments(?\OpenEuropa\EPoetry\Request\Type\ModifyAuxiliaryDocumentsIn $auxiliaryDocuments) : static { $this->auxiliaryDocuments = $auxiliaryDocuments; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\ModifyAuxiliaryDocumentsIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\ModifyAuxiliaryDocumentsIn */ public function getAuxiliaryDocuments() : ?\OpenEuropa\EPoetry\Request\Type\ModifyAuxiliaryDocumentsIn { diff --git a/src/Request/Type/ModifyRequestReferenceIn.php b/src/Request/Type/ModifyRequestReferenceIn.php index bacebe35..91c8a783 100644 --- a/src/Request/Type/ModifyRequestReferenceIn.php +++ b/src/Request/Type/ModifyRequestReferenceIn.php @@ -5,32 +5,32 @@ class ModifyRequestReferenceIn { /** - * @var \OpenEuropa\EPoetry\Request\Type\DossierReference + * @var null | \OpenEuropa\EPoetry\Request\Type\DossierReference */ - private $dossier; + private $dossier = null; /** - * @var string + * @var null | string */ - private $productType; + private $productType = null; /** - * @var int + * @var null | int */ - private $part; + private $part = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\DossierReference $dossier + * @param null | \OpenEuropa\EPoetry\Request\Type\DossierReference $dossier * @return $this */ - public function setDossier(\OpenEuropa\EPoetry\Request\Type\DossierReference $dossier) : static + public function setDossier(?\OpenEuropa\EPoetry\Request\Type\DossierReference $dossier) : static { $this->dossier = $dossier; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\DossierReference|null + * @return null | \OpenEuropa\EPoetry\Request\Type\DossierReference */ public function getDossier() : ?\OpenEuropa\EPoetry\Request\Type\DossierReference { @@ -46,17 +46,17 @@ public function hasDossier() : bool } /** - * @param string $productType + * @param null | string $productType * @return $this */ - public function setProductType(string $productType) : static + public function setProductType(?string $productType) : static { $this->productType = $productType; return $this; } /** - * @return string|null + * @return null | string */ public function getProductType() : ?string { @@ -72,17 +72,17 @@ public function hasProductType() : bool } /** - * @param int $part + * @param null | int $part * @return $this */ - public function setPart(int $part) : static + public function setPart(?int $part) : static { $this->part = $part; return $this; } /** - * @return int|null + * @return null | int */ public function getPart() : ?int { diff --git a/src/Request/Type/NoSuchMethodException.php b/src/Request/Type/NoSuchMethodException.php index 5531e726..0140b882 100644 --- a/src/Request/Type/NoSuchMethodException.php +++ b/src/Request/Type/NoSuchMethodException.php @@ -5,22 +5,22 @@ class NoSuchMethodException { /** - * @var string + * @var null | string */ - private $message; + private $message = null; /** - * @param string $message + * @param null | string $message * @return $this */ - public function setMessage(string $message) : static + public function setMessage(?string $message) : static { $this->message = $message; return $this; } /** - * @return string|null + * @return null | string */ public function getMessage() : ?string { diff --git a/src/Request/Type/OriginalDocument.php b/src/Request/Type/OriginalDocument.php new file mode 100644 index 00000000..e7732c84 --- /dev/null +++ b/src/Request/Type/OriginalDocument.php @@ -0,0 +1,193 @@ +trackChanges = $trackChanges; + return $this; + } + + /** + * @return bool + */ + public function isTrackChanges() : bool + { + return $this->trackChanges; + } + + /** + * @return bool + */ + public function hasTrackChanges() : bool + { + return !empty($this->trackChanges); + } + + /** + * @param null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' $format + * @return $this + */ + public function setFormat(?string $format) : static + { + $this->format = $format; + return $this; + } + + /** + * @return null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' + */ + public function getFormat() : ?string + { + return $this->format; + } + + /** + * @return bool + */ + public function hasFormat() : bool + { + return !empty($this->format); + } + + /** + * @param null | string $fileName + * @return $this + */ + public function setFileName(?string $fileName) : static + { + $this->fileName = $fileName; + return $this; + } + + /** + * @return null | string + */ + public function getFileName() : ?string + { + return $this->fileName; + } + + /** + * @return bool + */ + public function hasFileName() : bool + { + return !empty($this->fileName); + } + + /** + * @param null | float $pages + * @return $this + */ + public function setPages(?float $pages) : static + { + $this->pages = $pages; + return $this; + } + + /** + * @return null | float + */ + public function getPages() : ?float + { + return $this->pages; + } + + /** + * @return bool + */ + public function hasPages() : bool + { + return !empty($this->pages); + } + + /** + * @param null | string $comment + * @return $this + */ + public function setComment(?string $comment) : static + { + $this->comment = $comment; + return $this; + } + + /** + * @return null | string + */ + public function getComment() : ?string + { + return $this->comment; + } + + /** + * @return bool + */ + public function hasComment() : bool + { + return !empty($this->comment); + } + + /** + * @param null | \OpenEuropa\EPoetry\Request\Type\LinguisticSections $linguisticSections + * @return $this + */ + public function setLinguisticSections(?\OpenEuropa\EPoetry\Request\Type\LinguisticSections $linguisticSections) : static + { + $this->linguisticSections = $linguisticSections; + return $this; + } + + /** + * @return null | \OpenEuropa\EPoetry\Request\Type\LinguisticSections + */ + public function getLinguisticSections() : ?\OpenEuropa\EPoetry\Request\Type\LinguisticSections + { + return $this->linguisticSections; + } + + /** + * @return bool + */ + public function hasLinguisticSections() : bool + { + return !empty($this->linguisticSections); + } +} + diff --git a/src/Request/Type/OriginalDocumentIn.php b/src/Request/Type/OriginalDocumentIn.php index 92f16344..93fcfe79 100644 --- a/src/Request/Type/OriginalDocumentIn.php +++ b/src/Request/Type/OriginalDocumentIn.php @@ -5,19 +5,19 @@ class OriginalDocumentIn { /** - * @var string + * @var null | string */ - private $fileName; + private $fileName = null; /** - * @var string + * @var null | string */ - private $comment; + private $comment = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Base64Binary + * @var null | mixed */ - private $content; + private $content = null; /** * @var \OpenEuropa\EPoetry\Request\Type\LinguisticSections @@ -30,17 +30,17 @@ class OriginalDocumentIn private $trackChanges; /** - * @param string $fileName + * @param null | string $fileName * @return $this */ - public function setFileName(string $fileName) : static + public function setFileName(?string $fileName) : static { $this->fileName = $fileName; return $this; } /** - * @return string|null + * @return null | string */ public function getFileName() : ?string { @@ -56,17 +56,17 @@ public function hasFileName() : bool } /** - * @param string $comment + * @param null | string $comment * @return $this */ - public function setComment(string $comment) : static + public function setComment(?string $comment) : static { $this->comment = $comment; return $this; } /** - * @return string|null + * @return null | string */ public function getComment() : ?string { @@ -82,19 +82,19 @@ public function hasComment() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Base64Binary $content + * @param null | mixed $content * @return $this */ - public function setContent(\OpenEuropa\EPoetry\Request\Type\Base64Binary $content) : static + public function setContent(mixed $content) : static { $this->content = $content; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Base64Binary|null + * @return null | mixed */ - public function getContent() : ?\OpenEuropa\EPoetry\Request\Type\Base64Binary + public function getContent() : mixed { return $this->content; } @@ -118,9 +118,9 @@ public function setLinguisticSections(\OpenEuropa\EPoetry\Request\Type\Linguisti } /** - * @return \OpenEuropa\EPoetry\Request\Type\LinguisticSections|null + * @return \OpenEuropa\EPoetry\Request\Type\LinguisticSections */ - public function getLinguisticSections() : ?\OpenEuropa\EPoetry\Request\Type\LinguisticSections + public function getLinguisticSections() : \OpenEuropa\EPoetry\Request\Type\LinguisticSections { return $this->linguisticSections; } @@ -144,9 +144,9 @@ public function setTrackChanges(bool $trackChanges) : static } /** - * @return bool|null + * @return bool */ - public function isTrackChanges() : ?bool + public function isTrackChanges() : bool { return $this->trackChanges; } diff --git a/src/Request/Type/OriginalDocumentOut.php b/src/Request/Type/OriginalDocumentOut.php index a0e760b7..0ae6f6bc 100644 --- a/src/Request/Type/OriginalDocumentOut.php +++ b/src/Request/Type/OriginalDocumentOut.php @@ -10,29 +10,29 @@ class OriginalDocumentOut private $trackChanges; /** - * @var \OpenEuropa\EPoetry\Request\Type\DocumentFormat + * @var null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' */ - private $format; + private $format = null; /** - * @var string + * @var null | string */ - private $fileName; + private $fileName = null; /** - * @var float + * @var null | float */ - private $pages; + private $pages = null; /** - * @var string + * @var null | string */ - private $comment; + private $comment = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\LinguisticSections + * @var null | \OpenEuropa\EPoetry\Request\Type\LinguisticSections */ - private $linguisticSections; + private $linguisticSections = null; /** * @param bool $trackChanges @@ -45,9 +45,9 @@ public function setTrackChanges(bool $trackChanges) : static } /** - * @return bool|null + * @return bool */ - public function isTrackChanges() : ?bool + public function isTrackChanges() : bool { return $this->trackChanges; } @@ -61,19 +61,19 @@ public function hasTrackChanges() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\DocumentFormat $format + * @param null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' $format * @return $this */ - public function setFormat(\OpenEuropa\EPoetry\Request\Type\DocumentFormat $format) : static + public function setFormat(?string $format) : static { $this->format = $format; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\DocumentFormat|null + * @return null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' */ - public function getFormat() : ?\OpenEuropa\EPoetry\Request\Type\DocumentFormat + public function getFormat() : ?string { return $this->format; } @@ -87,17 +87,17 @@ public function hasFormat() : bool } /** - * @param string $fileName + * @param null | string $fileName * @return $this */ - public function setFileName(string $fileName) : static + public function setFileName(?string $fileName) : static { $this->fileName = $fileName; return $this; } /** - * @return string|null + * @return null | string */ public function getFileName() : ?string { @@ -113,17 +113,17 @@ public function hasFileName() : bool } /** - * @param float $pages + * @param null | float $pages * @return $this */ - public function setPages(float $pages) : static + public function setPages(?float $pages) : static { $this->pages = $pages; return $this; } /** - * @return float|null + * @return null | float */ public function getPages() : ?float { @@ -139,17 +139,17 @@ public function hasPages() : bool } /** - * @param string $comment + * @param null | string $comment * @return $this */ - public function setComment(string $comment) : static + public function setComment(?string $comment) : static { $this->comment = $comment; return $this; } /** - * @return string|null + * @return null | string */ public function getComment() : ?string { @@ -165,17 +165,17 @@ public function hasComment() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\LinguisticSections $linguisticSections + * @param null | \OpenEuropa\EPoetry\Request\Type\LinguisticSections $linguisticSections * @return $this */ - public function setLinguisticSections(\OpenEuropa\EPoetry\Request\Type\LinguisticSections $linguisticSections) : static + public function setLinguisticSections(?\OpenEuropa\EPoetry\Request\Type\LinguisticSections $linguisticSections) : static { $this->linguisticSections = $linguisticSections; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\LinguisticSections|null + * @return null | \OpenEuropa\EPoetry\Request\Type\LinguisticSections */ public function getLinguisticSections() : ?\OpenEuropa\EPoetry\Request\Type\LinguisticSections { diff --git a/src/Request/Type/Product.php b/src/Request/Type/Product.php new file mode 100644 index 00000000..cf9e310c --- /dev/null +++ b/src/Request/Type/Product.php @@ -0,0 +1,100 @@ +language = $language; + return $this; + } + + /** + * @return 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' + */ + public function getLanguage() : string + { + return $this->language; + } + + /** + * @return bool + */ + public function hasLanguage() : bool + { + return !empty($this->language); + } + + /** + * @param \DateTimeInterface $requestedDeadline + * @return $this + */ + public function setRequestedDeadline(\DateTimeInterface $requestedDeadline) : static + { + $this->requestedDeadline = $requestedDeadline; + return $this; + } + + /** + * @return \DateTimeInterface + */ + public function getRequestedDeadline() : \DateTimeInterface + { + return $this->requestedDeadline; + } + + /** + * @return bool + */ + public function hasRequestedDeadline() : bool + { + return !empty($this->requestedDeadline); + } + + /** + * @param bool $trackChanges + * @return $this + */ + public function setTrackChanges(bool $trackChanges) : static + { + $this->trackChanges = $trackChanges; + return $this; + } + + /** + * @return bool + */ + public function isTrackChanges() : bool + { + return $this->trackChanges; + } + + /** + * @return bool + */ + public function hasTrackChanges() : bool + { + return !empty($this->trackChanges); + } +} + diff --git a/src/Request/Type/ProductRequestIn.php b/src/Request/Type/ProductRequestIn.php index 612688fc..44b49113 100644 --- a/src/Request/Type/ProductRequestIn.php +++ b/src/Request/Type/ProductRequestIn.php @@ -5,14 +5,14 @@ class ProductRequestIn { /** - * @var \OpenEuropa\EPoetry\Request\Type\Language + * @var 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ private $language; /** - * @var \DateTimeInterface + * @var null | \DateTimeInterface */ - private $requestedDeadline; + private $requestedDeadline = null; /** * @var bool @@ -20,19 +20,19 @@ class ProductRequestIn private $trackChanges; /** - * @param \OpenEuropa\EPoetry\Request\Type\Language $language + * @param 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' $language * @return $this */ - public function setLanguage(\OpenEuropa\EPoetry\Request\Type\Language $language) : static + public function setLanguage(string $language) : static { $this->language = $language; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Language|null + * @return 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - public function getLanguage() : ?\OpenEuropa\EPoetry\Request\Type\Language + public function getLanguage() : string { return $this->language; } @@ -46,17 +46,17 @@ public function hasLanguage() : bool } /** - * @param \DateTimeInterface $requestedDeadline + * @param null | \DateTimeInterface $requestedDeadline * @return $this */ - public function setRequestedDeadline(\DateTimeInterface $requestedDeadline) : static + public function setRequestedDeadline(?\DateTimeInterface $requestedDeadline) : static { $this->requestedDeadline = $requestedDeadline; return $this; } /** - * @return \DateTimeInterface|null + * @return null | \DateTimeInterface */ public function getRequestedDeadline() : ?\DateTimeInterface { @@ -82,9 +82,9 @@ public function setTrackChanges(bool $trackChanges) : static } /** - * @return bool|null + * @return bool */ - public function isTrackChanges() : ?bool + public function isTrackChanges() : bool { return $this->trackChanges; } diff --git a/src/Request/Type/ProductRequestOut.php b/src/Request/Type/ProductRequestOut.php index 93ae30e4..014714c8 100644 --- a/src/Request/Type/ProductRequestOut.php +++ b/src/Request/Type/ProductRequestOut.php @@ -5,19 +5,19 @@ class ProductRequestOut { /** - * @var \OpenEuropa\EPoetry\Request\Type\Language + * @var null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - private $language; + private $language = null; /** - * @var \DateTimeInterface + * @var null | \DateTimeInterface */ - private $requestedDeadline; + private $requestedDeadline = null; /** - * @var \DateTimeInterface + * @var null | \DateTimeInterface */ - private $acceptedDeadline; + private $acceptedDeadline = null; /** * @var bool @@ -25,29 +25,29 @@ class ProductRequestOut private $trackChanges; /** - * @var \OpenEuropa\EPoetry\Request\Type\ProductStatus + * @var null | 'Accepted' | 'SenttoDGT' | 'Ongoing' | 'Received' | 'Rejected' | 'Requested' | 'Executed' | 'Sent' | 'ToBeValidated' */ - private $status; + private $status = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\DocumentFormat + * @var null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' */ - private $format; + private $format = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\Language $language + * @param null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' $language * @return $this */ - public function setLanguage(\OpenEuropa\EPoetry\Request\Type\Language $language) : static + public function setLanguage(?string $language) : static { $this->language = $language; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Language|null + * @return null | 'ML' | 'EN' | 'FR' | 'DE' | 'BG' | 'HR' | 'CS' | 'DA' | 'NL' | 'ET' | 'FI' | 'EL' | 'HU' | 'GA' | 'IT' | 'LV' | 'LT' | 'MT' | 'PL' | 'PT' | 'RO' | 'SK' | 'SL' | 'ES' | 'SV' | 'AF' | 'SQ' | 'AM' | 'AR' | 'HY' | 'AZ' | 'EU' | 'BE' | 'BI' | 'BO' | 'BR' | 'CN' | 'CA' | 'ZH' | 'KW' | 'CO' | 'EG' | 'EO' | 'FO' | 'FY' | 'GD' | 'GL' | 'KA' | 'GU' | 'IW' | 'HI' | 'IS' | 'IN' | 'JA' | 'KL' | 'KK' | 'KY' | 'KO' | 'KU' | 'LA' | 'LN' | 'LU' | 'MK' | 'MG' | 'MS' | 'GV' | 'MR' | 'MO' | 'MN' | 'ME' | 'SE' | 'NO' | 'NB' | 'NN' | 'OC' | 'AU' | 'PS' | 'PA' | 'FA' | 'RM' | 'RU' | 'SC' | 'SR' | 'SH' | 'SW' | 'TG' | 'TH' | 'TI' | 'TR' | 'UK' | 'UR' | 'UZ' | 'VI' | 'WO' | 'CY' | 'JI' | 'YO' | 'ZZ' */ - public function getLanguage() : ?\OpenEuropa\EPoetry\Request\Type\Language + public function getLanguage() : ?string { return $this->language; } @@ -61,17 +61,17 @@ public function hasLanguage() : bool } /** - * @param \DateTimeInterface $requestedDeadline + * @param null | \DateTimeInterface $requestedDeadline * @return $this */ - public function setRequestedDeadline(\DateTimeInterface $requestedDeadline) : static + public function setRequestedDeadline(?\DateTimeInterface $requestedDeadline) : static { $this->requestedDeadline = $requestedDeadline; return $this; } /** - * @return \DateTimeInterface|null + * @return null | \DateTimeInterface */ public function getRequestedDeadline() : ?\DateTimeInterface { @@ -87,17 +87,17 @@ public function hasRequestedDeadline() : bool } /** - * @param \DateTimeInterface $acceptedDeadline + * @param null | \DateTimeInterface $acceptedDeadline * @return $this */ - public function setAcceptedDeadline(\DateTimeInterface $acceptedDeadline) : static + public function setAcceptedDeadline(?\DateTimeInterface $acceptedDeadline) : static { $this->acceptedDeadline = $acceptedDeadline; return $this; } /** - * @return \DateTimeInterface|null + * @return null | \DateTimeInterface */ public function getAcceptedDeadline() : ?\DateTimeInterface { @@ -123,9 +123,9 @@ public function setTrackChanges(bool $trackChanges) : static } /** - * @return bool|null + * @return bool */ - public function isTrackChanges() : ?bool + public function isTrackChanges() : bool { return $this->trackChanges; } @@ -139,19 +139,19 @@ public function hasTrackChanges() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\ProductStatus $status + * @param null | 'Accepted' | 'SenttoDGT' | 'Ongoing' | 'Received' | 'Rejected' | 'Requested' | 'Executed' | 'Sent' | 'ToBeValidated' $status * @return $this */ - public function setStatus(\OpenEuropa\EPoetry\Request\Type\ProductStatus $status) : static + public function setStatus(?string $status) : static { $this->status = $status; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\ProductStatus|null + * @return null | 'Accepted' | 'SenttoDGT' | 'Ongoing' | 'Received' | 'Rejected' | 'Requested' | 'Executed' | 'Sent' | 'ToBeValidated' */ - public function getStatus() : ?\OpenEuropa\EPoetry\Request\Type\ProductStatus + public function getStatus() : ?string { return $this->status; } @@ -165,19 +165,19 @@ public function hasStatus() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\DocumentFormat $format + * @param null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' $format * @return $this */ - public function setFormat(\OpenEuropa\EPoetry\Request\Type\DocumentFormat $format) : static + public function setFormat(?string $format) : static { $this->format = $format; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\DocumentFormat|null + * @return null | 'XLS' | 'XLSX' | 'DOC' | 'DOCX' | 'PPTX' | 'PPT' | 'HTM' | 'HTML' | 'RTF' | 'VSD' | 'PDF' | 'TIF' | 'ZIP' | 'TIFF' | 'TXT' | 'XML' | 'XMW' */ - public function getFormat() : ?\OpenEuropa\EPoetry\Request\Type\DocumentFormat + public function getFormat() : ?string { return $this->format; } diff --git a/src/Request/Type/Products.php b/src/Request/Type/Products.php index 2a1f9b20..9cdda099 100644 --- a/src/Request/Type/Products.php +++ b/src/Request/Type/Products.php @@ -5,12 +5,13 @@ class Products { /** - * @var \OpenEuropa\EPoetry\Request\Type\ModifyProductRequestIn[]|array + * @var array, + * \OpenEuropa\EPoetry\Request\Type\ModifyProductRequestIn[]|array> */ private $product = []; /** - * @param ModifyProductRequestIn[] $product + * @param array, ModifyProductRequestIn[]> $product * @return $this */ public function setProduct(array $product) : static @@ -20,7 +21,8 @@ public function setProduct(array $product) : static } /** - * @return \OpenEuropa\EPoetry\Request\Type\ModifyProductRequestIn[]|array|null + * @return array, + * \OpenEuropa\EPoetry\Request\Type\ModifyProductRequestIn[]|array> */ public function getProduct() : ?array { diff --git a/src/Request/Type/PrtDocuments.php b/src/Request/Type/PrtDocuments.php index 4eb19546..8f8c8a33 100644 --- a/src/Request/Type/PrtDocuments.php +++ b/src/Request/Type/PrtDocuments.php @@ -5,12 +5,12 @@ class PrtDocuments { /** - * @var \OpenEuropa\EPoetry\Request\Type\DocumentIn[]|array + * @var array, \OpenEuropa\EPoetry\Request\Type\DocumentIn[]|array> */ private $document = []; /** - * @param DocumentIn[] $document + * @param array, DocumentIn[]> $document * @return $this */ public function setDocument(array $document) : static @@ -20,7 +20,7 @@ public function setDocument(array $document) : static } /** - * @return \OpenEuropa\EPoetry\Request\Type\DocumentIn[]|array|null + * @return array, \OpenEuropa\EPoetry\Request\Type\DocumentIn[]|array> */ public function getDocument() : ?array { diff --git a/src/Request/Type/ReferenceDocuments.php b/src/Request/Type/ReferenceDocuments.php index 9418dd92..d1aaac39 100644 --- a/src/Request/Type/ReferenceDocuments.php +++ b/src/Request/Type/ReferenceDocuments.php @@ -5,12 +5,12 @@ class ReferenceDocuments { /** - * @var \OpenEuropa\EPoetry\Request\Type\DocumentIn[]|array + * @var array, \OpenEuropa\EPoetry\Request\Type\DocumentIn[]|array> */ private $document = []; /** - * @param DocumentIn[] $document + * @param array, DocumentIn[]> $document * @return $this */ public function setDocument(array $document) : static @@ -20,7 +20,7 @@ public function setDocument(array $document) : static } /** - * @return \OpenEuropa\EPoetry\Request\Type\DocumentIn[]|array|null + * @return array, \OpenEuropa\EPoetry\Request\Type\DocumentIn[]|array> */ public function getDocument() : ?array { diff --git a/src/Request/Type/RequestDetails.php b/src/Request/Type/RequestDetails.php new file mode 100644 index 00000000..a4137aac --- /dev/null +++ b/src/Request/Type/RequestDetails.php @@ -0,0 +1,100 @@ +contacts = $contacts; + return $this; + } + + /** + * @return \OpenEuropa\EPoetry\Request\Type\Contacts + */ + public function getContacts() : \OpenEuropa\EPoetry\Request\Type\Contacts + { + return $this->contacts; + } + + /** + * @return bool + */ + public function hasContacts() : bool + { + return !empty($this->contacts); + } + + /** + * @param null | \OpenEuropa\EPoetry\Request\Type\Products $products + * @return $this + */ + public function setProducts(?\OpenEuropa\EPoetry\Request\Type\Products $products) : static + { + $this->products = $products; + return $this; + } + + /** + * @return null | \OpenEuropa\EPoetry\Request\Type\Products + */ + public function getProducts() : ?\OpenEuropa\EPoetry\Request\Type\Products + { + return $this->products; + } + + /** + * @return bool + */ + public function hasProducts() : bool + { + return !empty($this->products); + } + + /** + * @param null | \OpenEuropa\EPoetry\Request\Type\ModifyAuxiliaryDocumentsIn $auxiliaryDocuments + * @return $this + */ + public function setAuxiliaryDocuments(?\OpenEuropa\EPoetry\Request\Type\ModifyAuxiliaryDocumentsIn $auxiliaryDocuments) : static + { + $this->auxiliaryDocuments = $auxiliaryDocuments; + return $this; + } + + /** + * @return null | \OpenEuropa\EPoetry\Request\Type\ModifyAuxiliaryDocumentsIn + */ + public function getAuxiliaryDocuments() : ?\OpenEuropa\EPoetry\Request\Type\ModifyAuxiliaryDocumentsIn + { + return $this->auxiliaryDocuments; + } + + /** + * @return bool + */ + public function hasAuxiliaryDocuments() : bool + { + return !empty($this->auxiliaryDocuments); + } +} + diff --git a/src/Request/Type/RequestDetailsIn.php b/src/Request/Type/RequestDetailsIn.php index f88fa697..82dc4763 100644 --- a/src/Request/Type/RequestDetailsIn.php +++ b/src/Request/Type/RequestDetailsIn.php @@ -10,89 +10,89 @@ class RequestDetailsIn private $title; /** - * @var \OpenEuropa\EPoetry\Request\Type\WorkflowCode + * @var null | 'WEB' | 'HOTL' | 'STS' | 'PP' | 'QE' */ - private $workflowCode; + private $workflowCode = null; /** - * @var string + * @var null | string */ - private $internalReference; + private $internalReference = null; /** - * @var \DateTimeInterface + * @var null | \DateTimeInterface */ - private $requestedDeadline; + private $requestedDeadline = null; /** - * @var bool + * @var null | bool */ - private $sensitive; + private $sensitive = null; /** - * @var bool + * @var null | bool */ - private $sentViaRue; + private $sentViaRue = null; /** - * @var bool + * @var null | bool */ - private $documentToAdopt; + private $documentToAdopt = null; /** - * @var string + * @var null | string */ - private $decideReference; + private $decideReference = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Destination + * @var null | 'EM' | 'EXT' | 'IE' | 'INTERNE' | 'JO' | 'PUBLIC' */ - private $destination; + private $destination = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Procedure + * @var null | 'DEGHP' | 'NEANT' | 'PROAC' | 'PROCD' | 'PROCE' | 'PROCH' | 'PROCO' | 'REUNAU' | 'REUNCS' */ - private $procedure; + private $procedure = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\SlaAnnex + * @var null | 'ANNEX8A' | 'ANNEX8B' | 'NO' */ - private $slaAnnex; + private $slaAnnex = null; /** - * @var string + * @var null | string */ - private $slaCommitment; + private $slaCommitment = null; /** - * @var string + * @var null | string */ - private $comment; + private $comment = null; /** - * @var string + * @var null | string */ - private $onBehalfOf; + private $onBehalfOf = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\AccessLevel + * @var null | 'CONTACTS' | 'UNIT' | 'DIR' | 'DG' | 'ON_BEHALF_DG' */ - private $accessibleTo; + private $accessibleTo = null; /** - * @var string + * @var null | string */ - private $keyword1; + private $keyword1 = null; /** - * @var string + * @var null | string */ - private $keyword2; + private $keyword2 = null; /** - * @var string + * @var null | string */ - private $keyword3; + private $keyword3 = null; /** * @var \OpenEuropa\EPoetry\Request\Type\Contacts @@ -110,9 +110,9 @@ class RequestDetailsIn private $products; /** - * @var \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocumentsIn + * @var null | \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocumentsIn */ - private $auxiliaryDocuments; + private $auxiliaryDocuments = null; /** * @param string $title @@ -125,9 +125,9 @@ public function setTitle(string $title) : static } /** - * @return string|null + * @return string */ - public function getTitle() : ?string + public function getTitle() : string { return $this->title; } @@ -141,19 +141,19 @@ public function hasTitle() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\WorkflowCode $workflowCode + * @param null | 'WEB' | 'HOTL' | 'STS' | 'PP' | 'QE' $workflowCode * @return $this */ - public function setWorkflowCode(\OpenEuropa\EPoetry\Request\Type\WorkflowCode $workflowCode) : static + public function setWorkflowCode(?string $workflowCode) : static { $this->workflowCode = $workflowCode; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\WorkflowCode|null + * @return null | 'WEB' | 'HOTL' | 'STS' | 'PP' | 'QE' */ - public function getWorkflowCode() : ?\OpenEuropa\EPoetry\Request\Type\WorkflowCode + public function getWorkflowCode() : ?string { return $this->workflowCode; } @@ -167,17 +167,17 @@ public function hasWorkflowCode() : bool } /** - * @param string $internalReference + * @param null | string $internalReference * @return $this */ - public function setInternalReference(string $internalReference) : static + public function setInternalReference(?string $internalReference) : static { $this->internalReference = $internalReference; return $this; } /** - * @return string|null + * @return null | string */ public function getInternalReference() : ?string { @@ -193,17 +193,17 @@ public function hasInternalReference() : bool } /** - * @param \DateTimeInterface $requestedDeadline + * @param null | \DateTimeInterface $requestedDeadline * @return $this */ - public function setRequestedDeadline(\DateTimeInterface $requestedDeadline) : static + public function setRequestedDeadline(?\DateTimeInterface $requestedDeadline) : static { $this->requestedDeadline = $requestedDeadline; return $this; } /** - * @return \DateTimeInterface|null + * @return null | \DateTimeInterface */ public function getRequestedDeadline() : ?\DateTimeInterface { @@ -219,17 +219,17 @@ public function hasRequestedDeadline() : bool } /** - * @param bool $sensitive + * @param null | bool $sensitive * @return $this */ - public function setSensitive(bool $sensitive) : static + public function setSensitive(?bool $sensitive) : static { $this->sensitive = $sensitive; return $this; } /** - * @return bool|null + * @return null | bool */ public function isSensitive() : ?bool { @@ -245,17 +245,17 @@ public function hasSensitive() : bool } /** - * @param bool $sentViaRue + * @param null | bool $sentViaRue * @return $this */ - public function setSentViaRue(bool $sentViaRue) : static + public function setSentViaRue(?bool $sentViaRue) : static { $this->sentViaRue = $sentViaRue; return $this; } /** - * @return bool|null + * @return null | bool */ public function isSentViaRue() : ?bool { @@ -271,17 +271,17 @@ public function hasSentViaRue() : bool } /** - * @param bool $documentToAdopt + * @param null | bool $documentToAdopt * @return $this */ - public function setDocumentToAdopt(bool $documentToAdopt) : static + public function setDocumentToAdopt(?bool $documentToAdopt) : static { $this->documentToAdopt = $documentToAdopt; return $this; } /** - * @return bool|null + * @return null | bool */ public function isDocumentToAdopt() : ?bool { @@ -297,17 +297,17 @@ public function hasDocumentToAdopt() : bool } /** - * @param string $decideReference + * @param null | string $decideReference * @return $this */ - public function setDecideReference(string $decideReference) : static + public function setDecideReference(?string $decideReference) : static { $this->decideReference = $decideReference; return $this; } /** - * @return string|null + * @return null | string */ public function getDecideReference() : ?string { @@ -323,19 +323,19 @@ public function hasDecideReference() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Destination $destination + * @param null | 'EM' | 'EXT' | 'IE' | 'INTERNE' | 'JO' | 'PUBLIC' $destination * @return $this */ - public function setDestination(\OpenEuropa\EPoetry\Request\Type\Destination $destination) : static + public function setDestination(?string $destination) : static { $this->destination = $destination; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Destination|null + * @return null | 'EM' | 'EXT' | 'IE' | 'INTERNE' | 'JO' | 'PUBLIC' */ - public function getDestination() : ?\OpenEuropa\EPoetry\Request\Type\Destination + public function getDestination() : ?string { return $this->destination; } @@ -349,19 +349,19 @@ public function hasDestination() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Procedure $procedure + * @param null | 'DEGHP' | 'NEANT' | 'PROAC' | 'PROCD' | 'PROCE' | 'PROCH' | 'PROCO' | 'REUNAU' | 'REUNCS' $procedure * @return $this */ - public function setProcedure(\OpenEuropa\EPoetry\Request\Type\Procedure $procedure) : static + public function setProcedure(?string $procedure) : static { $this->procedure = $procedure; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Procedure|null + * @return null | 'DEGHP' | 'NEANT' | 'PROAC' | 'PROCD' | 'PROCE' | 'PROCH' | 'PROCO' | 'REUNAU' | 'REUNCS' */ - public function getProcedure() : ?\OpenEuropa\EPoetry\Request\Type\Procedure + public function getProcedure() : ?string { return $this->procedure; } @@ -375,19 +375,19 @@ public function hasProcedure() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\SlaAnnex $slaAnnex + * @param null | 'ANNEX8A' | 'ANNEX8B' | 'NO' $slaAnnex * @return $this */ - public function setSlaAnnex(\OpenEuropa\EPoetry\Request\Type\SlaAnnex $slaAnnex) : static + public function setSlaAnnex(?string $slaAnnex) : static { $this->slaAnnex = $slaAnnex; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\SlaAnnex|null + * @return null | 'ANNEX8A' | 'ANNEX8B' | 'NO' */ - public function getSlaAnnex() : ?\OpenEuropa\EPoetry\Request\Type\SlaAnnex + public function getSlaAnnex() : ?string { return $this->slaAnnex; } @@ -401,17 +401,17 @@ public function hasSlaAnnex() : bool } /** - * @param string $slaCommitment + * @param null | string $slaCommitment * @return $this */ - public function setSlaCommitment(string $slaCommitment) : static + public function setSlaCommitment(?string $slaCommitment) : static { $this->slaCommitment = $slaCommitment; return $this; } /** - * @return string|null + * @return null | string */ public function getSlaCommitment() : ?string { @@ -427,17 +427,17 @@ public function hasSlaCommitment() : bool } /** - * @param string $comment + * @param null | string $comment * @return $this */ - public function setComment(string $comment) : static + public function setComment(?string $comment) : static { $this->comment = $comment; return $this; } /** - * @return string|null + * @return null | string */ public function getComment() : ?string { @@ -453,17 +453,17 @@ public function hasComment() : bool } /** - * @param string $onBehalfOf + * @param null | string $onBehalfOf * @return $this */ - public function setOnBehalfOf(string $onBehalfOf) : static + public function setOnBehalfOf(?string $onBehalfOf) : static { $this->onBehalfOf = $onBehalfOf; return $this; } /** - * @return string|null + * @return null | string */ public function getOnBehalfOf() : ?string { @@ -479,19 +479,19 @@ public function hasOnBehalfOf() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\AccessLevel $accessibleTo + * @param null | 'CONTACTS' | 'UNIT' | 'DIR' | 'DG' | 'ON_BEHALF_DG' $accessibleTo * @return $this */ - public function setAccessibleTo(\OpenEuropa\EPoetry\Request\Type\AccessLevel $accessibleTo) : static + public function setAccessibleTo(?string $accessibleTo) : static { $this->accessibleTo = $accessibleTo; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\AccessLevel|null + * @return null | 'CONTACTS' | 'UNIT' | 'DIR' | 'DG' | 'ON_BEHALF_DG' */ - public function getAccessibleTo() : ?\OpenEuropa\EPoetry\Request\Type\AccessLevel + public function getAccessibleTo() : ?string { return $this->accessibleTo; } @@ -505,17 +505,17 @@ public function hasAccessibleTo() : bool } /** - * @param string $keyword1 + * @param null | string $keyword1 * @return $this */ - public function setKeyword1(string $keyword1) : static + public function setKeyword1(?string $keyword1) : static { $this->keyword1 = $keyword1; return $this; } /** - * @return string|null + * @return null | string */ public function getKeyword1() : ?string { @@ -531,17 +531,17 @@ public function hasKeyword1() : bool } /** - * @param string $keyword2 + * @param null | string $keyword2 * @return $this */ - public function setKeyword2(string $keyword2) : static + public function setKeyword2(?string $keyword2) : static { $this->keyword2 = $keyword2; return $this; } /** - * @return string|null + * @return null | string */ public function getKeyword2() : ?string { @@ -557,17 +557,17 @@ public function hasKeyword2() : bool } /** - * @param string $keyword3 + * @param null | string $keyword3 * @return $this */ - public function setKeyword3(string $keyword3) : static + public function setKeyword3(?string $keyword3) : static { $this->keyword3 = $keyword3; return $this; } /** - * @return string|null + * @return null | string */ public function getKeyword3() : ?string { @@ -593,9 +593,9 @@ public function setContacts(\OpenEuropa\EPoetry\Request\Type\Contacts $contacts) } /** - * @return \OpenEuropa\EPoetry\Request\Type\Contacts|null + * @return \OpenEuropa\EPoetry\Request\Type\Contacts */ - public function getContacts() : ?\OpenEuropa\EPoetry\Request\Type\Contacts + public function getContacts() : \OpenEuropa\EPoetry\Request\Type\Contacts { return $this->contacts; } @@ -619,9 +619,9 @@ public function setOriginalDocument(\OpenEuropa\EPoetry\Request\Type\OriginalDoc } /** - * @return \OpenEuropa\EPoetry\Request\Type\OriginalDocumentIn|null + * @return \OpenEuropa\EPoetry\Request\Type\OriginalDocumentIn */ - public function getOriginalDocument() : ?\OpenEuropa\EPoetry\Request\Type\OriginalDocumentIn + public function getOriginalDocument() : \OpenEuropa\EPoetry\Request\Type\OriginalDocumentIn { return $this->originalDocument; } @@ -645,9 +645,9 @@ public function setProducts(\OpenEuropa\EPoetry\Request\Type\Products $products) } /** - * @return \OpenEuropa\EPoetry\Request\Type\Products|null + * @return \OpenEuropa\EPoetry\Request\Type\Products */ - public function getProducts() : ?\OpenEuropa\EPoetry\Request\Type\Products + public function getProducts() : \OpenEuropa\EPoetry\Request\Type\Products { return $this->products; } @@ -661,17 +661,17 @@ public function hasProducts() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocumentsIn $auxiliaryDocuments + * @param null | \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocumentsIn $auxiliaryDocuments * @return $this */ - public function setAuxiliaryDocuments(\OpenEuropa\EPoetry\Request\Type\AuxiliaryDocumentsIn $auxiliaryDocuments) : static + public function setAuxiliaryDocuments(?\OpenEuropa\EPoetry\Request\Type\AuxiliaryDocumentsIn $auxiliaryDocuments) : static { $this->auxiliaryDocuments = $auxiliaryDocuments; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocumentsIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocumentsIn */ public function getAuxiliaryDocuments() : ?\OpenEuropa\EPoetry\Request\Type\AuxiliaryDocumentsIn { diff --git a/src/Request/Type/RequestDetailsOut.php b/src/Request/Type/RequestDetailsOut.php index 2ad20ecc..75be916d 100644 --- a/src/Request/Type/RequestDetailsOut.php +++ b/src/Request/Type/RequestDetailsOut.php @@ -5,29 +5,29 @@ class RequestDetailsOut { /** - * @var string + * @var null | string */ - private $title; + private $title = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\WorkflowCode + * @var null | 'WEB' | 'HOTL' | 'STS' | 'PP' | 'QE' */ - private $workflowCode; + private $workflowCode = null; /** - * @var string + * @var null | string */ - private $internalReference; + private $internalReference = null; /** - * @var \DateTimeInterface + * @var null | \DateTimeInterface */ - private $requestedDeadline; + private $requestedDeadline = null; /** - * @var \DateTimeInterface + * @var null | \DateTimeInterface */ - private $acceptedDeadline; + private $acceptedDeadline = null; /** * @var bool @@ -45,107 +45,107 @@ class RequestDetailsOut private $documentToAdopt; /** - * @var string + * @var null | string */ - private $decideReference; + private $decideReference = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Destination + * @var null | 'EM' | 'EXT' | 'IE' | 'INTERNE' | 'JO' | 'PUBLIC' */ - private $destination; + private $destination = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Procedure + * @var null | 'DEGHP' | 'NEANT' | 'PROAC' | 'PROCD' | 'PROCE' | 'PROCH' | 'PROCO' | 'REUNAU' | 'REUNCS' */ - private $procedure; + private $procedure = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\SlaAnnex + * @var null | 'ANNEX8A' | 'ANNEX8B' | 'NO' */ - private $slaAnnex; + private $slaAnnex = null; /** - * @var string + * @var null | string */ - private $slaCommitment; + private $slaCommitment = null; /** - * @var string + * @var null | string */ - private $comment; + private $comment = null; /** - * @var string + * @var null | string */ - private $onBehalfOf; + private $onBehalfOf = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\AccessLevel + * @var null | 'CONTACTS' | 'UNIT' | 'DIR' | 'DG' | 'ON_BEHALF_DG' */ - private $accessibleTo; + private $accessibleTo = null; /** - * @var string + * @var null | string */ - private $keyword1; + private $keyword1 = null; /** - * @var string + * @var null | string */ - private $keyword2; + private $keyword2 = null; /** - * @var string + * @var null | string */ - private $keyword3; + private $keyword3 = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\RequestStatus + * @var null | 'SenttoDGT' | 'Received' | 'Accepted' | 'Rejected' | 'Cancelled' | 'Suspended' | 'Executed' | 'ToBeValidated' */ - private $status; + private $status = null; /** - * @var string + * @var null | string */ - private $rejectMessage; + private $rejectMessage = null; /** - * @var string + * @var null | string */ - private $applicationName; + private $applicationName = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Contacts + * @var null | \OpenEuropa\EPoetry\Request\Type\Contacts */ - private $contacts; + private $contacts = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\OriginalDocumentOut + * @var null | \OpenEuropa\EPoetry\Request\Type\OriginalDocumentOut */ - private $originalDocument; + private $originalDocument = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Products + * @var null | \OpenEuropa\EPoetry\Request\Type\Products */ - private $products; + private $products = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocuments + * @var null | \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocuments */ - private $auxiliaryDocuments; + private $auxiliaryDocuments = null; /** - * @param string $title + * @param null | string $title * @return $this */ - public function setTitle(string $title) : static + public function setTitle(?string $title) : static { $this->title = $title; return $this; } /** - * @return string|null + * @return null | string */ public function getTitle() : ?string { @@ -161,19 +161,19 @@ public function hasTitle() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\WorkflowCode $workflowCode + * @param null | 'WEB' | 'HOTL' | 'STS' | 'PP' | 'QE' $workflowCode * @return $this */ - public function setWorkflowCode(\OpenEuropa\EPoetry\Request\Type\WorkflowCode $workflowCode) : static + public function setWorkflowCode(?string $workflowCode) : static { $this->workflowCode = $workflowCode; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\WorkflowCode|null + * @return null | 'WEB' | 'HOTL' | 'STS' | 'PP' | 'QE' */ - public function getWorkflowCode() : ?\OpenEuropa\EPoetry\Request\Type\WorkflowCode + public function getWorkflowCode() : ?string { return $this->workflowCode; } @@ -187,17 +187,17 @@ public function hasWorkflowCode() : bool } /** - * @param string $internalReference + * @param null | string $internalReference * @return $this */ - public function setInternalReference(string $internalReference) : static + public function setInternalReference(?string $internalReference) : static { $this->internalReference = $internalReference; return $this; } /** - * @return string|null + * @return null | string */ public function getInternalReference() : ?string { @@ -213,17 +213,17 @@ public function hasInternalReference() : bool } /** - * @param \DateTimeInterface $requestedDeadline + * @param null | \DateTimeInterface $requestedDeadline * @return $this */ - public function setRequestedDeadline(\DateTimeInterface $requestedDeadline) : static + public function setRequestedDeadline(?\DateTimeInterface $requestedDeadline) : static { $this->requestedDeadline = $requestedDeadline; return $this; } /** - * @return \DateTimeInterface|null + * @return null | \DateTimeInterface */ public function getRequestedDeadline() : ?\DateTimeInterface { @@ -239,17 +239,17 @@ public function hasRequestedDeadline() : bool } /** - * @param \DateTimeInterface $acceptedDeadline + * @param null | \DateTimeInterface $acceptedDeadline * @return $this */ - public function setAcceptedDeadline(\DateTimeInterface $acceptedDeadline) : static + public function setAcceptedDeadline(?\DateTimeInterface $acceptedDeadline) : static { $this->acceptedDeadline = $acceptedDeadline; return $this; } /** - * @return \DateTimeInterface|null + * @return null | \DateTimeInterface */ public function getAcceptedDeadline() : ?\DateTimeInterface { @@ -275,9 +275,9 @@ public function setSensitive(bool $sensitive) : static } /** - * @return bool|null + * @return bool */ - public function isSensitive() : ?bool + public function isSensitive() : bool { return $this->sensitive; } @@ -301,9 +301,9 @@ public function setSentViaRue(bool $sentViaRue) : static } /** - * @return bool|null + * @return bool */ - public function isSentViaRue() : ?bool + public function isSentViaRue() : bool { return $this->sentViaRue; } @@ -327,9 +327,9 @@ public function setDocumentToAdopt(bool $documentToAdopt) : static } /** - * @return bool|null + * @return bool */ - public function isDocumentToAdopt() : ?bool + public function isDocumentToAdopt() : bool { return $this->documentToAdopt; } @@ -343,17 +343,17 @@ public function hasDocumentToAdopt() : bool } /** - * @param string $decideReference + * @param null | string $decideReference * @return $this */ - public function setDecideReference(string $decideReference) : static + public function setDecideReference(?string $decideReference) : static { $this->decideReference = $decideReference; return $this; } /** - * @return string|null + * @return null | string */ public function getDecideReference() : ?string { @@ -369,19 +369,19 @@ public function hasDecideReference() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Destination $destination + * @param null | 'EM' | 'EXT' | 'IE' | 'INTERNE' | 'JO' | 'PUBLIC' $destination * @return $this */ - public function setDestination(\OpenEuropa\EPoetry\Request\Type\Destination $destination) : static + public function setDestination(?string $destination) : static { $this->destination = $destination; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Destination|null + * @return null | 'EM' | 'EXT' | 'IE' | 'INTERNE' | 'JO' | 'PUBLIC' */ - public function getDestination() : ?\OpenEuropa\EPoetry\Request\Type\Destination + public function getDestination() : ?string { return $this->destination; } @@ -395,19 +395,19 @@ public function hasDestination() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Procedure $procedure + * @param null | 'DEGHP' | 'NEANT' | 'PROAC' | 'PROCD' | 'PROCE' | 'PROCH' | 'PROCO' | 'REUNAU' | 'REUNCS' $procedure * @return $this */ - public function setProcedure(\OpenEuropa\EPoetry\Request\Type\Procedure $procedure) : static + public function setProcedure(?string $procedure) : static { $this->procedure = $procedure; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Procedure|null + * @return null | 'DEGHP' | 'NEANT' | 'PROAC' | 'PROCD' | 'PROCE' | 'PROCH' | 'PROCO' | 'REUNAU' | 'REUNCS' */ - public function getProcedure() : ?\OpenEuropa\EPoetry\Request\Type\Procedure + public function getProcedure() : ?string { return $this->procedure; } @@ -421,19 +421,19 @@ public function hasProcedure() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\SlaAnnex $slaAnnex + * @param null | 'ANNEX8A' | 'ANNEX8B' | 'NO' $slaAnnex * @return $this */ - public function setSlaAnnex(\OpenEuropa\EPoetry\Request\Type\SlaAnnex $slaAnnex) : static + public function setSlaAnnex(?string $slaAnnex) : static { $this->slaAnnex = $slaAnnex; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\SlaAnnex|null + * @return null | 'ANNEX8A' | 'ANNEX8B' | 'NO' */ - public function getSlaAnnex() : ?\OpenEuropa\EPoetry\Request\Type\SlaAnnex + public function getSlaAnnex() : ?string { return $this->slaAnnex; } @@ -447,17 +447,17 @@ public function hasSlaAnnex() : bool } /** - * @param string $slaCommitment + * @param null | string $slaCommitment * @return $this */ - public function setSlaCommitment(string $slaCommitment) : static + public function setSlaCommitment(?string $slaCommitment) : static { $this->slaCommitment = $slaCommitment; return $this; } /** - * @return string|null + * @return null | string */ public function getSlaCommitment() : ?string { @@ -473,17 +473,17 @@ public function hasSlaCommitment() : bool } /** - * @param string $comment + * @param null | string $comment * @return $this */ - public function setComment(string $comment) : static + public function setComment(?string $comment) : static { $this->comment = $comment; return $this; } /** - * @return string|null + * @return null | string */ public function getComment() : ?string { @@ -499,17 +499,17 @@ public function hasComment() : bool } /** - * @param string $onBehalfOf + * @param null | string $onBehalfOf * @return $this */ - public function setOnBehalfOf(string $onBehalfOf) : static + public function setOnBehalfOf(?string $onBehalfOf) : static { $this->onBehalfOf = $onBehalfOf; return $this; } /** - * @return string|null + * @return null | string */ public function getOnBehalfOf() : ?string { @@ -525,19 +525,19 @@ public function hasOnBehalfOf() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\AccessLevel $accessibleTo + * @param null | 'CONTACTS' | 'UNIT' | 'DIR' | 'DG' | 'ON_BEHALF_DG' $accessibleTo * @return $this */ - public function setAccessibleTo(\OpenEuropa\EPoetry\Request\Type\AccessLevel $accessibleTo) : static + public function setAccessibleTo(?string $accessibleTo) : static { $this->accessibleTo = $accessibleTo; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\AccessLevel|null + * @return null | 'CONTACTS' | 'UNIT' | 'DIR' | 'DG' | 'ON_BEHALF_DG' */ - public function getAccessibleTo() : ?\OpenEuropa\EPoetry\Request\Type\AccessLevel + public function getAccessibleTo() : ?string { return $this->accessibleTo; } @@ -551,17 +551,17 @@ public function hasAccessibleTo() : bool } /** - * @param string $keyword1 + * @param null | string $keyword1 * @return $this */ - public function setKeyword1(string $keyword1) : static + public function setKeyword1(?string $keyword1) : static { $this->keyword1 = $keyword1; return $this; } /** - * @return string|null + * @return null | string */ public function getKeyword1() : ?string { @@ -577,17 +577,17 @@ public function hasKeyword1() : bool } /** - * @param string $keyword2 + * @param null | string $keyword2 * @return $this */ - public function setKeyword2(string $keyword2) : static + public function setKeyword2(?string $keyword2) : static { $this->keyword2 = $keyword2; return $this; } /** - * @return string|null + * @return null | string */ public function getKeyword2() : ?string { @@ -603,17 +603,17 @@ public function hasKeyword2() : bool } /** - * @param string $keyword3 + * @param null | string $keyword3 * @return $this */ - public function setKeyword3(string $keyword3) : static + public function setKeyword3(?string $keyword3) : static { $this->keyword3 = $keyword3; return $this; } /** - * @return string|null + * @return null | string */ public function getKeyword3() : ?string { @@ -629,19 +629,19 @@ public function hasKeyword3() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\RequestStatus $status + * @param null | 'SenttoDGT' | 'Received' | 'Accepted' | 'Rejected' | 'Cancelled' | 'Suspended' | 'Executed' | 'ToBeValidated' $status * @return $this */ - public function setStatus(\OpenEuropa\EPoetry\Request\Type\RequestStatus $status) : static + public function setStatus(?string $status) : static { $this->status = $status; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\RequestStatus|null + * @return null | 'SenttoDGT' | 'Received' | 'Accepted' | 'Rejected' | 'Cancelled' | 'Suspended' | 'Executed' | 'ToBeValidated' */ - public function getStatus() : ?\OpenEuropa\EPoetry\Request\Type\RequestStatus + public function getStatus() : ?string { return $this->status; } @@ -655,17 +655,17 @@ public function hasStatus() : bool } /** - * @param string $rejectMessage + * @param null | string $rejectMessage * @return $this */ - public function setRejectMessage(string $rejectMessage) : static + public function setRejectMessage(?string $rejectMessage) : static { $this->rejectMessage = $rejectMessage; return $this; } /** - * @return string|null + * @return null | string */ public function getRejectMessage() : ?string { @@ -681,17 +681,17 @@ public function hasRejectMessage() : bool } /** - * @param string $applicationName + * @param null | string $applicationName * @return $this */ - public function setApplicationName(string $applicationName) : static + public function setApplicationName(?string $applicationName) : static { $this->applicationName = $applicationName; return $this; } /** - * @return string|null + * @return null | string */ public function getApplicationName() : ?string { @@ -707,17 +707,17 @@ public function hasApplicationName() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Contacts $contacts + * @param null | \OpenEuropa\EPoetry\Request\Type\Contacts $contacts * @return $this */ - public function setContacts(\OpenEuropa\EPoetry\Request\Type\Contacts $contacts) : static + public function setContacts(?\OpenEuropa\EPoetry\Request\Type\Contacts $contacts) : static { $this->contacts = $contacts; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Contacts|null + * @return null | \OpenEuropa\EPoetry\Request\Type\Contacts */ public function getContacts() : ?\OpenEuropa\EPoetry\Request\Type\Contacts { @@ -733,17 +733,17 @@ public function hasContacts() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\OriginalDocumentOut $originalDocument + * @param null | \OpenEuropa\EPoetry\Request\Type\OriginalDocumentOut $originalDocument * @return $this */ - public function setOriginalDocument(\OpenEuropa\EPoetry\Request\Type\OriginalDocumentOut $originalDocument) : static + public function setOriginalDocument(?\OpenEuropa\EPoetry\Request\Type\OriginalDocumentOut $originalDocument) : static { $this->originalDocument = $originalDocument; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\OriginalDocumentOut|null + * @return null | \OpenEuropa\EPoetry\Request\Type\OriginalDocumentOut */ public function getOriginalDocument() : ?\OpenEuropa\EPoetry\Request\Type\OriginalDocumentOut { @@ -759,17 +759,17 @@ public function hasOriginalDocument() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Products $products + * @param null | \OpenEuropa\EPoetry\Request\Type\Products $products * @return $this */ - public function setProducts(\OpenEuropa\EPoetry\Request\Type\Products $products) : static + public function setProducts(?\OpenEuropa\EPoetry\Request\Type\Products $products) : static { $this->products = $products; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Products|null + * @return null | \OpenEuropa\EPoetry\Request\Type\Products */ public function getProducts() : ?\OpenEuropa\EPoetry\Request\Type\Products { @@ -785,17 +785,17 @@ public function hasProducts() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocuments $auxiliaryDocuments + * @param null | \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocuments $auxiliaryDocuments * @return $this */ - public function setAuxiliaryDocuments(\OpenEuropa\EPoetry\Request\Type\AuxiliaryDocuments $auxiliaryDocuments) : static + public function setAuxiliaryDocuments(?\OpenEuropa\EPoetry\Request\Type\AuxiliaryDocuments $auxiliaryDocuments) : static { $this->auxiliaryDocuments = $auxiliaryDocuments; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocuments|null + * @return null | \OpenEuropa\EPoetry\Request\Type\AuxiliaryDocuments */ public function getAuxiliaryDocuments() : ?\OpenEuropa\EPoetry\Request\Type\AuxiliaryDocuments { diff --git a/src/Request/Type/RequestReference.php b/src/Request/Type/RequestReference.php new file mode 100644 index 00000000..cc027e8a --- /dev/null +++ b/src/Request/Type/RequestReference.php @@ -0,0 +1,100 @@ +dossier = $dossier; + return $this; + } + + /** + * @return null | \OpenEuropa\EPoetry\Request\Type\DossierReference + */ + public function getDossier() : ?\OpenEuropa\EPoetry\Request\Type\DossierReference + { + return $this->dossier; + } + + /** + * @return bool + */ + public function hasDossier() : bool + { + return !empty($this->dossier); + } + + /** + * @param null | string $productType + * @return $this + */ + public function setProductType(?string $productType) : static + { + $this->productType = $productType; + return $this; + } + + /** + * @return null | string + */ + public function getProductType() : ?string + { + return $this->productType; + } + + /** + * @return bool + */ + public function hasProductType() : bool + { + return !empty($this->productType); + } + + /** + * @param null | int $part + * @return $this + */ + public function setPart(?int $part) : static + { + $this->part = $part; + return $this; + } + + /** + * @return null | int + */ + public function getPart() : ?int + { + return $this->part; + } + + /** + * @return bool + */ + public function hasPart() : bool + { + return !empty($this->part); + } +} + diff --git a/src/Request/Type/RequestReferenceIn.php b/src/Request/Type/RequestReferenceIn.php index 4e31b953..f8fe689b 100644 --- a/src/Request/Type/RequestReferenceIn.php +++ b/src/Request/Type/RequestReferenceIn.php @@ -5,32 +5,32 @@ class RequestReferenceIn { /** - * @var \OpenEuropa\EPoetry\Request\Type\DossierReference + * @var null | \OpenEuropa\EPoetry\Request\Type\DossierReference */ - private $dossier; + private $dossier = null; /** - * @var string + * @var null | string */ - private $productType; + private $productType = null; /** - * @var int + * @var null | int */ - private $part; + private $part = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\DossierReference $dossier + * @param null | \OpenEuropa\EPoetry\Request\Type\DossierReference $dossier * @return $this */ - public function setDossier(\OpenEuropa\EPoetry\Request\Type\DossierReference $dossier) : static + public function setDossier(?\OpenEuropa\EPoetry\Request\Type\DossierReference $dossier) : static { $this->dossier = $dossier; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\DossierReference|null + * @return null | \OpenEuropa\EPoetry\Request\Type\DossierReference */ public function getDossier() : ?\OpenEuropa\EPoetry\Request\Type\DossierReference { @@ -46,17 +46,17 @@ public function hasDossier() : bool } /** - * @param string $productType + * @param null | string $productType * @return $this */ - public function setProductType(string $productType) : static + public function setProductType(?string $productType) : static { $this->productType = $productType; return $this; } /** - * @return string|null + * @return null | string */ public function getProductType() : ?string { @@ -72,17 +72,17 @@ public function hasProductType() : bool } /** - * @param int $part + * @param null | int $part * @return $this */ - public function setPart(int $part) : static + public function setPart(?int $part) : static { $this->part = $part; return $this; } /** - * @return int|null + * @return null | int */ public function getPart() : ?int { diff --git a/src/Request/Type/RequestReferenceOut.php b/src/Request/Type/RequestReferenceOut.php index 4aa90df8..2c1e7013 100644 --- a/src/Request/Type/RequestReferenceOut.php +++ b/src/Request/Type/RequestReferenceOut.php @@ -5,37 +5,37 @@ class RequestReferenceOut { /** - * @var \OpenEuropa\EPoetry\Request\Type\DossierReference + * @var null | \OpenEuropa\EPoetry\Request\Type\DossierReference */ - private $dossier; + private $dossier = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\ProductServiceType + * @var null | 'ERR' | 'EXT' | 'EDT' | 'TRA' | 'RSO' | 'RSE' | 'REV' | 'PER' | 'SPO' */ - private $productType; + private $productType = null; /** - * @var int + * @var null | int */ - private $part; + private $part = null; /** - * @var int + * @var null | int */ - private $version; + private $version = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\DossierReference $dossier + * @param null | \OpenEuropa\EPoetry\Request\Type\DossierReference $dossier * @return $this */ - public function setDossier(\OpenEuropa\EPoetry\Request\Type\DossierReference $dossier) : static + public function setDossier(?\OpenEuropa\EPoetry\Request\Type\DossierReference $dossier) : static { $this->dossier = $dossier; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\DossierReference|null + * @return null | \OpenEuropa\EPoetry\Request\Type\DossierReference */ public function getDossier() : ?\OpenEuropa\EPoetry\Request\Type\DossierReference { @@ -51,19 +51,19 @@ public function hasDossier() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\ProductServiceType $productType + * @param null | 'ERR' | 'EXT' | 'EDT' | 'TRA' | 'RSO' | 'RSE' | 'REV' | 'PER' | 'SPO' $productType * @return $this */ - public function setProductType(\OpenEuropa\EPoetry\Request\Type\ProductServiceType $productType) : static + public function setProductType(?string $productType) : static { $this->productType = $productType; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\ProductServiceType|null + * @return null | 'ERR' | 'EXT' | 'EDT' | 'TRA' | 'RSO' | 'RSE' | 'REV' | 'PER' | 'SPO' */ - public function getProductType() : ?\OpenEuropa\EPoetry\Request\Type\ProductServiceType + public function getProductType() : ?string { return $this->productType; } @@ -77,17 +77,17 @@ public function hasProductType() : bool } /** - * @param int $part + * @param null | int $part * @return $this */ - public function setPart(int $part) : static + public function setPart(?int $part) : static { $this->part = $part; return $this; } /** - * @return int|null + * @return null | int */ public function getPart() : ?int { @@ -103,17 +103,17 @@ public function hasPart() : bool } /** - * @param int $version + * @param null | int $version * @return $this */ - public function setVersion(int $version) : static + public function setVersion(?int $version) : static { $this->version = $version; return $this; } /** - * @return int|null + * @return null | int */ public function getVersion() : ?int { diff --git a/src/Request/Type/ResubmitRequest.php b/src/Request/Type/ResubmitRequest.php index 4aa36a63..5404511a 100644 --- a/src/Request/Type/ResubmitRequest.php +++ b/src/Request/Type/ResubmitRequest.php @@ -7,32 +7,32 @@ class ResubmitRequest implements RequestInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn + * @var null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn */ - private $resubmitRequest; + private $resubmitRequest = null; /** - * @var string + * @var null | string */ - private $applicationName; + private $applicationName = null; /** - * @var string + * @var null | string */ - private $templateName; + private $templateName = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn $resubmitRequest + * @param null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn $resubmitRequest * @return $this */ - public function setResubmitRequest(\OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn $resubmitRequest) : static + public function setResubmitRequest(?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn $resubmitRequest) : static { $this->resubmitRequest = $resubmitRequest; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn|null + * @return null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn */ public function getResubmitRequest() : ?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestIn { @@ -48,17 +48,17 @@ public function hasResubmitRequest() : bool } /** - * @param string $applicationName + * @param null | string $applicationName * @return $this */ - public function setApplicationName(string $applicationName) : static + public function setApplicationName(?string $applicationName) : static { $this->applicationName = $applicationName; return $this; } /** - * @return string|null + * @return null | string */ public function getApplicationName() : ?string { @@ -74,17 +74,17 @@ public function hasApplicationName() : bool } /** - * @param string $templateName + * @param null | string $templateName * @return $this */ - public function setTemplateName(string $templateName) : static + public function setTemplateName(?string $templateName) : static { $this->templateName = $templateName; return $this; } /** - * @return string|null + * @return null | string */ public function getTemplateName() : ?string { diff --git a/src/Request/Type/ResubmitRequestResponse.php b/src/Request/Type/ResubmitRequestResponse.php index 5625d457..9282e538 100644 --- a/src/Request/Type/ResubmitRequestResponse.php +++ b/src/Request/Type/ResubmitRequestResponse.php @@ -7,22 +7,22 @@ class ResubmitRequestResponse implements ResultInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut + * @var null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut */ - private $return; + private $return = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return + * @param null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return * @return $this */ - public function setReturn(\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return) : static + public function setReturn(?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut $return) : static { $this->return = $return; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut|null + * @return null | \OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut */ public function getReturn() : ?\OpenEuropa\EPoetry\Request\Type\LinguisticRequestOut { diff --git a/src/Request/Type/SrcDocumentIn.php b/src/Request/Type/SrcDocumentIn.php index 3de52aa2..a1e6d464 100644 --- a/src/Request/Type/SrcDocumentIn.php +++ b/src/Request/Type/SrcDocumentIn.php @@ -5,32 +5,32 @@ class SrcDocumentIn { /** - * @var string + * @var null | string */ - private $fileName; + private $fileName = null; /** - * @var string + * @var null | string */ - private $comment; + private $comment = null; /** - * @var \OpenEuropa\EPoetry\Request\Type\Base64Binary + * @var null | mixed */ - private $content; + private $content = null; /** - * @param string $fileName + * @param null | string $fileName * @return $this */ - public function setFileName(string $fileName) : static + public function setFileName(?string $fileName) : static { $this->fileName = $fileName; return $this; } /** - * @return string|null + * @return null | string */ public function getFileName() : ?string { @@ -46,17 +46,17 @@ public function hasFileName() : bool } /** - * @param string $comment + * @param null | string $comment * @return $this */ - public function setComment(string $comment) : static + public function setComment(?string $comment) : static { $this->comment = $comment; return $this; } /** - * @return string|null + * @return null | string */ public function getComment() : ?string { @@ -72,19 +72,19 @@ public function hasComment() : bool } /** - * @param \OpenEuropa\EPoetry\Request\Type\Base64Binary $content + * @param null | mixed $content * @return $this */ - public function setContent(\OpenEuropa\EPoetry\Request\Type\Base64Binary $content) : static + public function setContent(mixed $content) : static { $this->content = $content; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\Base64Binary|null + * @return null | mixed */ - public function getContent() : ?\OpenEuropa\EPoetry\Request\Type\Base64Binary + public function getContent() : mixed { return $this->content; } diff --git a/src/Request/Type/TraxDocuments.php b/src/Request/Type/TraxDocuments.php index fdf90142..b8d5dd00 100644 --- a/src/Request/Type/TraxDocuments.php +++ b/src/Request/Type/TraxDocuments.php @@ -5,12 +5,12 @@ class TraxDocuments { /** - * @var \OpenEuropa\EPoetry\Request\Type\DocumentIn[]|array + * @var array, \OpenEuropa\EPoetry\Request\Type\DocumentIn[]|array> */ private $document = []; /** - * @param DocumentIn[] $document + * @param array, DocumentIn[]> $document * @return $this */ public function setDocument(array $document) : static @@ -20,7 +20,7 @@ public function setDocument(array $document) : static } /** - * @return \OpenEuropa\EPoetry\Request\Type\DocumentIn[]|array|null + * @return array, \OpenEuropa\EPoetry\Request\Type\DocumentIn[]|array> */ public function getDocument() : ?array { diff --git a/src/Request/Type/UnsupportedEncodingException.php b/src/Request/Type/UnsupportedEncodingException.php index db181edb..c5cfdd4f 100644 --- a/src/Request/Type/UnsupportedEncodingException.php +++ b/src/Request/Type/UnsupportedEncodingException.php @@ -5,22 +5,22 @@ class UnsupportedEncodingException { /** - * @var string + * @var null | string */ - private $message; + private $message = null; /** - * @param string $message + * @param null | string $message * @return $this */ - public function setMessage(string $message) : static + public function setMessage(?string $message) : static { $this->message = $message; return $this; } /** - * @return string|null + * @return null | string */ public function getMessage() : ?string { diff --git a/src/Request/Type/UpdateCallbackUrl.php b/src/Request/Type/UpdateCallbackUrl.php index ad0f5e31..dc16841e 100644 --- a/src/Request/Type/UpdateCallbackUrl.php +++ b/src/Request/Type/UpdateCallbackUrl.php @@ -7,27 +7,27 @@ class UpdateCallbackUrl implements RequestInterface { /** - * @var string + * @var null | string */ - private $callbackUrl; + private $callbackUrl = null; /** - * @var string + * @var null | string */ - private $applicationName; + private $applicationName = null; /** - * @param string $callbackUrl + * @param null | string $callbackUrl * @return $this */ - public function setCallbackUrl(string $callbackUrl) : static + public function setCallbackUrl(?string $callbackUrl) : static { $this->callbackUrl = $callbackUrl; return $this; } /** - * @return string|null + * @return null | string */ public function getCallbackUrl() : ?string { @@ -43,17 +43,17 @@ public function hasCallbackUrl() : bool } /** - * @param string $applicationName + * @param null | string $applicationName * @return $this */ - public function setApplicationName(string $applicationName) : static + public function setApplicationName(?string $applicationName) : static { $this->applicationName = $applicationName; return $this; } /** - * @return string|null + * @return null | string */ public function getApplicationName() : ?string { diff --git a/src/Request/Type/UpdateCallbackUrlOut.php b/src/Request/Type/UpdateCallbackUrlOut.php index 53ab00cd..15ff75b1 100644 --- a/src/Request/Type/UpdateCallbackUrlOut.php +++ b/src/Request/Type/UpdateCallbackUrlOut.php @@ -10,24 +10,24 @@ class UpdateCallbackUrlOut private $success; /** - * @var string + * @var null | string */ - private $oldCallbackUrl; + private $oldCallbackUrl = null; /** - * @var string + * @var null | string */ - private $newCallbackUrl; + private $newCallbackUrl = null; /** - * @var string + * @var null | string */ - private $application; + private $application = null; /** - * @var string + * @var null | string */ - private $message; + private $message = null; /** * @param bool $success @@ -40,9 +40,9 @@ public function setSuccess(bool $success) : static } /** - * @return bool|null + * @return bool */ - public function isSuccess() : ?bool + public function isSuccess() : bool { return $this->success; } @@ -56,17 +56,17 @@ public function hasSuccess() : bool } /** - * @param string $oldCallbackUrl + * @param null | string $oldCallbackUrl * @return $this */ - public function setOldCallbackUrl(string $oldCallbackUrl) : static + public function setOldCallbackUrl(?string $oldCallbackUrl) : static { $this->oldCallbackUrl = $oldCallbackUrl; return $this; } /** - * @return string|null + * @return null | string */ public function getOldCallbackUrl() : ?string { @@ -82,17 +82,17 @@ public function hasOldCallbackUrl() : bool } /** - * @param string $newCallbackUrl + * @param null | string $newCallbackUrl * @return $this */ - public function setNewCallbackUrl(string $newCallbackUrl) : static + public function setNewCallbackUrl(?string $newCallbackUrl) : static { $this->newCallbackUrl = $newCallbackUrl; return $this; } /** - * @return string|null + * @return null | string */ public function getNewCallbackUrl() : ?string { @@ -108,17 +108,17 @@ public function hasNewCallbackUrl() : bool } /** - * @param string $application + * @param null | string $application * @return $this */ - public function setApplication(string $application) : static + public function setApplication(?string $application) : static { $this->application = $application; return $this; } /** - * @return string|null + * @return null | string */ public function getApplication() : ?string { @@ -134,17 +134,17 @@ public function hasApplication() : bool } /** - * @param string $message + * @param null | string $message * @return $this */ - public function setMessage(string $message) : static + public function setMessage(?string $message) : static { $this->message = $message; return $this; } /** - * @return string|null + * @return null | string */ public function getMessage() : ?string { diff --git a/src/Request/Type/UpdateCallbackUrlResponse.php b/src/Request/Type/UpdateCallbackUrlResponse.php index 1fa69cb1..90044de6 100644 --- a/src/Request/Type/UpdateCallbackUrlResponse.php +++ b/src/Request/Type/UpdateCallbackUrlResponse.php @@ -7,22 +7,22 @@ class UpdateCallbackUrlResponse implements ResultInterface { /** - * @var \OpenEuropa\EPoetry\Request\Type\UpdateCallbackUrlOut + * @var null | \OpenEuropa\EPoetry\Request\Type\UpdateCallbackUrlOut */ - private $return; + private $return = null; /** - * @param \OpenEuropa\EPoetry\Request\Type\UpdateCallbackUrlOut $return + * @param null | \OpenEuropa\EPoetry\Request\Type\UpdateCallbackUrlOut $return * @return $this */ - public function setReturn(\OpenEuropa\EPoetry\Request\Type\UpdateCallbackUrlOut $return) : static + public function setReturn(?\OpenEuropa\EPoetry\Request\Type\UpdateCallbackUrlOut $return) : static { $this->return = $return; return $this; } /** - * @return \OpenEuropa\EPoetry\Request\Type\UpdateCallbackUrlOut|null + * @return null | \OpenEuropa\EPoetry\Request\Type\UpdateCallbackUrlOut */ public function getReturn() : ?\OpenEuropa\EPoetry\Request\Type\UpdateCallbackUrlOut {