Skip to content

Commit

Permalink
Label::$Contenttype -> Label::$OutputType
Browse files Browse the repository at this point in the history
  • Loading branch information
firstred committed Apr 12, 2023
1 parent 1198379 commit 9c2c10c
Showing 1 changed file with 53 additions and 31 deletions.
84 changes: 53 additions & 31 deletions src/Entity/Label.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
* Class Label.
*
* @method string|null getContent()
* @method string|null getContentType()
* @method string|null getOutputType()
* @method string|null getLabeltype()
* @method Label setContent(string|null $Content = null)
* @method Label setContentType(string|null $ContentType = null)
* @method Label setOutputType(string|null $OutputType = null)
* @method Label setLabeltype(string|null $Labeltype = null)
*
* @since 1.0.0
Expand All @@ -53,40 +53,40 @@ class Label extends AbstractEntity

/** @var string[][] */
public static $defaultProperties = [
'Barcode' => [
'Content' => BarcodeService::DOMAIN_NAMESPACE,
'ContentType' => BarcodeService::DOMAIN_NAMESPACE,
'Labeltype' => BarcodeService::DOMAIN_NAMESPACE,
'Barcode' => [
'Content' => BarcodeService::DOMAIN_NAMESPACE,
'OutputType' => BarcodeService::DOMAIN_NAMESPACE,
'Labeltype' => BarcodeService::DOMAIN_NAMESPACE,
],
'Confirming' => [
'Content' => ConfirmingService::DOMAIN_NAMESPACE,
'ContentType' => ConfirmingService::DOMAIN_NAMESPACE,
'Labeltype' => ConfirmingService::DOMAIN_NAMESPACE,
'Confirming' => [
'Content' => ConfirmingService::DOMAIN_NAMESPACE,
'OutputType' => ConfirmingService::DOMAIN_NAMESPACE,
'Labeltype' => ConfirmingService::DOMAIN_NAMESPACE,
],
'Labelling' => [
'Content' => LabellingService::DOMAIN_NAMESPACE,
'ContentType' => LabellingService::DOMAIN_NAMESPACE,
'Labeltype' => LabellingService::DOMAIN_NAMESPACE,
'Labelling' => [
'Content' => LabellingService::DOMAIN_NAMESPACE,
'OutputType' => LabellingService::DOMAIN_NAMESPACE,
'Labeltype' => LabellingService::DOMAIN_NAMESPACE,
],
'DeliveryDate' => [
'Content' => DeliveryDateService::DOMAIN_NAMESPACE,
'ContentType' => DeliveryDateService::DOMAIN_NAMESPACE,
'Labeltype' => DeliveryDateService::DOMAIN_NAMESPACE,
'Content' => DeliveryDateService::DOMAIN_NAMESPACE,
'OutputType' => DeliveryDateService::DOMAIN_NAMESPACE,
'Labeltype' => DeliveryDateService::DOMAIN_NAMESPACE,
],
'Location' => [
'Content' => LocationService::DOMAIN_NAMESPACE,
'ContentType' => LocationService::DOMAIN_NAMESPACE,
'Labeltype' => LocationService::DOMAIN_NAMESPACE,
'Location' => [
'Content' => LocationService::DOMAIN_NAMESPACE,
'OutputType' => LocationService::DOMAIN_NAMESPACE,
'Labeltype' => LocationService::DOMAIN_NAMESPACE,
],
'Timeframe' => [
'Content' => TimeframeService::DOMAIN_NAMESPACE,
'ContentType' => TimeframeService::DOMAIN_NAMESPACE,
'Labeltype' => TimeframeService::DOMAIN_NAMESPACE,
'Timeframe' => [
'Content' => TimeframeService::DOMAIN_NAMESPACE,
'OutputType' => TimeframeService::DOMAIN_NAMESPACE,
'Labeltype' => TimeframeService::DOMAIN_NAMESPACE,
],
'Shipping' => [
'Content' => ShippingService::DOMAIN_NAMESPACE,
'ContentType' => ShippingService::DOMAIN_NAMESPACE,
'Labeltype' => ShippingService::DOMAIN_NAMESPACE,
'Shipping' => [
'Content' => ShippingService::DOMAIN_NAMESPACE,
'OutputType' => ShippingService::DOMAIN_NAMESPACE,
'Labeltype' => ShippingService::DOMAIN_NAMESPACE,
],
];
// @codingStandardsIgnoreStart
Expand All @@ -97,7 +97,7 @@ class Label extends AbstractEntity
*/
protected $Content;
/** @var string|null */
protected $Contenttype;
protected $OutputType;
/** @var string|null */
protected $Labeltype;
// @codingStandardsIgnoreEnd
Expand All @@ -112,7 +112,29 @@ public function __construct($Content = null, $ContentType = null, $Labeltype = n
parent::__construct();

$this->setContent($Content);
$this->setContenttype($ContentType);
$this->setOutputType($ContentType);
$this->setLabeltype($Labeltype);
}

/**
* @return string|null
*
* @deprecated 1.4.2 Use `getOutputType` instead
*/
public function getContenttype()
{
return $this->getOutputType();
}

/**
* @param string|null $Contenttype
*
* @return static
*
* @deprecated 1.4.2 Use `getOutputType` instead
*/
public function setContenttype($Contenttype)
{
return $this->setOutputType($Contenttype);
}
}

0 comments on commit 9c2c10c

Please sign in to comment.