Skip to content

Commit

Permalink
Imports namespaces for PHPDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotjreed committed Dec 15, 2024
1 parent 32b4d22 commit 1373f1c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,7 @@ public function getEstimatedDelivery(): ?EstimatedDelivery
}

/**
* @param EstimatedDelivery|null $estimatedDelivery Object containing
* the estimated
* delivery data
* @param EstimatedDelivery|null $estimatedDelivery Object containing the estimated delivery data
*/
public function setEstimatedDelivery(?EstimatedDelivery $estimatedDelivery): self
{
Expand All @@ -131,7 +129,7 @@ public function setEstimatedDelivery(?EstimatedDelivery $estimatedDelivery): sel
}

/**
* @return \ElliotJReed\RoyalMail\Tracking\Entity\Event\Event[] array containing mail piece event information
* @return Event[] array containing mail piece event information
*/
public function getEvents(): array
{
Expand Down
11 changes: 2 additions & 9 deletions src/ElliotJReed/RoyalMail/Tracking/Entity/Event/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,15 @@ final class Response extends \ElliotJReed\RoyalMail\Tracking\Entity\Response
private ?MailPieces $mailPieces = null;

/**
* @return MailPieces|null Object containing tracking information for
* the requested mail item. This will only be
* provided in the event that no error
* information is returned.
* @return MailPieces|null Object containing tracking information for the requested mail item. This will only be provided in the event that no error information is returned.
*/
public function getMailPieces(): ?MailPieces
{
return $this->mailPieces;
}

/**
* @param MailPieces|null $mailPieces Object containing tracking
* information for the requested
* mail item. This will only be
* provided in the event that no
* error information is returned.
* @param MailPieces|null $mailPieces Object containing tracking information for the requested mail item. This will only be provided in the event that no error information is returned.
*/
public function setMailPieces(?MailPieces $mailPieces): self
{
Expand Down
4 changes: 2 additions & 2 deletions src/ElliotJReed/RoyalMail/Tracking/Entity/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ public function setMoreInformation(?string $moreInformation): self
}

/**
* @return \ElliotJReed\RoyalMail\Tracking\Entity\ErrorResponse[] array containing error information
* @return ErrorResponse[] array containing error information
*/
public function getErrors(): array
{
return $this->errors;
}

/**
* @param \ElliotJReed\RoyalMail\Tracking\Entity\ErrorResponse[] $errors array containing error information
* @param ErrorResponse[] $errors array containing error information
*/
public function setErrors(array $errors): self
{
Expand Down
18 changes: 9 additions & 9 deletions src/ElliotJReed/RoyalMail/Tracking/Entity/Summary/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ final class Response extends \ElliotJReed\RoyalMail\Tracking\Entity\Response
private array $mailPieces = [];

/**
* @return \ElliotJReed\RoyalMail\Tracking\Entity\Summary\MailPieces[] Object containing tracking information for
* the requested mail item. This will only be
* provided in the event that no error
* information is returned.
* @return MailPieces[] Object containing tracking information for
* the requested mail item. This will only be
* provided in the event that no error
* information is returned.
*/
public function getMailPieces(): array
{
return $this->mailPieces;
}

/**
* @param \ElliotJReed\RoyalMail\Tracking\Entity\Summary\MailPieces[] $mailPieces Object containing tracking
* information for the requested
* mail item. This will only be
* provided in the event that no
* error information is returned.
* @param MailPieces[] $mailPieces Object containing tracking
* information for the requested
* mail item. This will only be
* provided in the event that no
* error information is returned.
*/
public function setMailPieces(array $mailPieces): self
{
Expand Down

0 comments on commit 1373f1c

Please sign in to comment.